ldc-legaulois/app/Http/Requests/Bo/KeyNumbers/UpdateKeyNumberRequest.php

17 lines
349 B
PHP
Raw Permalink Normal View History

<?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.
*/
public function authorize(): bool
{
return Gate::check('update', $this->route('key_number'));
}
}