ldc-legaulois/app/Http/Requests/RecipeHighlightsUpdate.php
Jérémy Munsch f51cc52a07
- remove double sub template message success
- Fix Recipe hightlight
2022-01-04 11:31:20 +01:00

31 lines
582 B
PHP

<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class RecipeHighlightsUpdate extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return auth()->check();
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'recipes' => 'sometimes|array',
'recipes.*' => 'exists:recipes,id'
];
}
}