ldc-legaulois/app/Http/Requests/Bo/Claims/UpdateClaimRequest.php

17 lines
332 B
PHP
Raw Permalink Normal View History

2024-06-10 16:47:07 +02:00
<?php
namespace App\Http\Requests\Bo\Claims;
use Illuminate\Support\Facades\Gate;
class UpdateClaimRequest extends StoreClaimRequest
{
/**
* Determine if the user is authorized to make this request.
*/
public function authorize(): bool
{
return Gate::check('update', $this->route('claim'));
}
}