ldc-legaulois/app/Http/Requests/Bo/Videos/UpdateVideoRequest.php
Nicolas Demangeat 8836c15a0f add CRUD Video
2024-04-30 11:57:43 +02:00

18 lines
362 B
PHP

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