ldc-legaulois/app/Http/Requests/Bo/News/UpdateNewsRequest.php
Nicolas Demangeat a82dcf4204 feat: ✨ add CRUD News
2024-09-06 09:26:40 +02:00

18 lines
357 B
PHP

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