ldc-legaulois/app/Http/Requests/Bo/Recipes/UpdateRecipeRequest.php
2024-05-21 14:56:14 +02:00

18 lines
366 B
PHP

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