ldc-groupe/app/Http/Requests/Back/News/UpdateNewsRequest.php

19 lines
359 B
PHP
Raw Permalink Normal View History

2025-11-12 14:32:50 +01:00
<?php
namespace App\Http\Requests\Back\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'));
}
}