ldc-com-app-bo/app/Http/Requests/Bo/Documents/UpdateDocumentRequest.php

19 lines
374 B
PHP
Raw Permalink Normal View History

2023-03-31 17:38:44 +02:00
<?php
2023-04-05 17:20:30 +02:00
namespace App\Http\Requests\Bo\Documents;
2023-03-31 17:38:44 +02:00
use Illuminate\Support\Facades\Gate;
2023-03-31 17:38:44 +02:00
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'));
}
2023-03-31 17:38:44 +02:00
}