2025-12-09 11:29:10 +01:00
|
|
|
<?php
|
|
|
|
|
|
2026-02-12 17:14:08 +01:00
|
|
|
namespace App\Http\Requests\Back\Documents;
|
2025-12-09 11:29:10 +01:00
|
|
|
|
|
|
|
|
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
|
2025-12-09 11:29:10 +01:00
|
|
|
*/
|
|
|
|
|
public function authorize(): bool
|
|
|
|
|
{
|
|
|
|
|
return Gate::check('update', $this->route('document'));
|
|
|
|
|
}
|
|
|
|
|
}
|