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

17 lines
346 B
PHP

<?php
namespace App\Http\Requests\Back\Document;
use Illuminate\Support\Facades\Gate;
class UpdateDocumentRequest extends StoreDocumentRequest
{
/**
* Determine if the user is authorized to make this request.
*/
public function authorize(): bool
{
return Gate::check('update', $this->route('document'));
}
}