ldc-legaulois/app/Http/Requests/Bo/ConsumptionMoments/UpdateConsumptionMomentRequest.php

19 lines
411 B
PHP
Raw Normal View History

2024-04-25 16:58:41 +02:00
<?php
namespace App\Http\Requests\Bo\ConsumptionMoments;
use Illuminate\Support\Facades\Gate;
class UpdateConsumptionMomentRequest extends StoreConsumptionMomentRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return boolean
*/
public function authorize(): bool
{
return Gate::check('update', $this->route('consumption_moment'));
}
}