ldc-legaulois/app/Http/Requests/Bo/News/UpdateNewsRequest.php

17 lines
327 B
PHP
Raw Permalink Normal View History

2024-08-30 15:46:52 +02:00
<?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.
*/
public function authorize(): bool
{
return Gate::check('update', $this->route('news'));
}
}