ldc-groupe/app/Http/Requests/Back/Companies/UpdateCompanyRequest.php
2025-12-01 14:51:11 +01:00

18 lines
373 B
PHP

<?php
namespace App\Http\Requests\Back\Companies;
use Illuminate\Support\Facades\Gate;
class UpdateCompanyRequest extends StoreCompanyRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return boolean
*/
public function authorize(): bool
{
return Gate::check('update', $this->route('company'));
}
}