17 lines
336 B
PHP
17 lines
336 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.
|
||
|
|
*/
|
||
|
|
public function authorize(): bool
|
||
|
|
{
|
||
|
|
return Gate::check('update', $this->route('recipe'));
|
||
|
|
}
|
||
|
|
}
|