ldc-legaulois/app/Http/Requests/Bo/Subranges/UpdateSubrangeRequest.php

19 lines
374 B
PHP
Raw Normal View History

2024-04-12 13:41:57 +00:00
<?php
namespace App\Http\Requests\Bo\Subranges;
use Illuminate\Support\Facades\Gate;
class UpdateSubrangeRequest extends StoreSubrangeRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return boolean
*/
public function authorize(): bool
{
return Gate::check('update', $this->route('subrange'));
}
}