ldc-groupe/app/Http/Requests/Back/CompanySectors/UpdateCompanySectorRequest.php

19 lines
397 B
PHP
Raw Permalink Normal View History

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