ldc-supportweb/app/Http/Requests/Back/Notices/UpdateNoticeRequest.php
2026-06-05 17:05:46 +02:00

22 lines
462 B
PHP

<?php
declare(strict_types=1);
namespace App\Http\Requests\Back\Notices;
use Illuminate\Support\Facades\Gate;
/**
* Handles authorization and validation for updating an existing Notice.
*/
class UpdateNoticeRequest extends StoreNoticeRequest
{
/**
* Determine if the user is authorized to make this request.
*/
#[\Override]
public function authorize(): bool
{
return Gate::check('update', $this->route('notice'));
}
}