ldc-groupe/app/Http/Requests/Back/Documents/UpdateDocumentRequest.php

19 lines
376 B
PHP
Raw Permalink Normal View History

<?php
2026-02-12 17:14:08 +01:00
namespace App\Http\Requests\Back\Documents;
use Illuminate\Support\Facades\Gate;
class UpdateDocumentRequest extends StoreDocumentRequest
{
/**
* Determine if the user is authorized to make this request.
2026-02-10 15:43:47 +01:00
*
* @return boolean
*/
public function authorize(): bool
{
return Gate::check('update', $this->route('document'));
}
}