ldc-legaulois/app/Http/Requests/Bo/Recipes/UpdateRecipeRequest.php

17 lines
336 B
PHP
Raw Permalink Normal View History

2024-05-15 12:40:31 +02:00
<?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.
*/
public function authorize(): bool
{
return Gate::check('update', $this->route('recipe'));
}
}