ldc-groupe/app/Http/Requests/Back/Companies/UpdateCompanyRequest.php

19 lines
373 B
PHP
Raw Normal View History

<?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'));
}
}