ldc-legaulois/app/Http/Requests/Bo/Videos/UpdateVideoRequest.php

17 lines
332 B
PHP
Raw Permalink Normal View History

2024-04-30 11:57:43 +02:00
<?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.
*/
public function authorize(): bool
{
return Gate::check('update', $this->route('video'));
}
}