21 lines
490 B
PHP
21 lines
490 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\Back\InvoicePackages;
|
|
|
|
use Illuminate\Support\Facades\Gate;
|
|
|
|
/**
|
|
* Handles authorization and validation for updating an existing InvoicePackage.
|
|
*/
|
|
class UpdateInvoicePackageRequest extends StoreInvoicePackageRequest
|
|
{
|
|
/**
|
|
* Determine if the user is authorized to make this request.
|
|
*
|
|
* @return boolean
|
|
*/
|
|
public function authorize(): bool
|
|
{
|
|
return Gate::check('update', $this->route('invoice_package'));
|
|
}
|
|
}
|