2024-03-29 14:19:59 +01:00
|
|
|
<?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
|
|
|
|
|
{
|
2024-03-29 14:54:59 +01:00
|
|
|
return Gate::check('update', $this->route('key_number'));
|
2024-03-29 14:19:59 +01:00
|
|
|
}
|
|
|
|
|
}
|