ldc-legaulois/app/Http/Requests/Bo/KeyNumbers/UpdateKeyNumberRequest.php
2024-03-29 14:54:59 +01:00

18 lines
379 B
PHP

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