ldc-groupe/app/Http/Requests/Back/FinanceDocument/UpdateFinanceDocumentRequest.php

17 lines
375 B
PHP

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