ldc-legaulois/app/Http/Requests/Bo/Offers/UpdateOfferRequest.php
2024-07-15 10:25:41 +02:00

18 lines
362 B
PHP

<?php
namespace App\Http\Requests\Bo\Offers;
use Illuminate\Support\Facades\Gate;
class UpdateOfferRequest extends StoreOfferRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return boolean
*/
public function authorize(): bool
{
return Gate::check('update', $this->route('offer'));
}
}