ldc-groupe/app/Http/Requests/Back/Documents/UpdateDocumentRequest.php
2026-02-13 12:10:35 +01:00

18 lines
376 B
PHP

<?php
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.
*
* @return boolean
*/
public function authorize(): bool
{
return Gate::check('update', $this->route('document'));
}
}