diff --git a/app/Http/Controllers/RecipeController.php b/app/Http/Controllers/RecipeController.php index 0326e2a..40efec8 100644 --- a/app/Http/Controllers/RecipeController.php +++ b/app/Http/Controllers/RecipeController.php @@ -203,7 +203,7 @@ class RecipeController extends Controller 'ingredients.id.*' => 'required_with:ingredients.amount.*|nullable', 'ingredients.type' => ['required', 'array', new ArrayNotEmpty], 'ingredients.type.*' => ['required_with:ingredients.id.*', 'nullable', new UsesIngredientTrait()], - 'ingredients.key' => ['required', 'array', new ArrayNotEmpty], + 'ingredients.key' => ['nullable', 'array'], 'ingredients.key.*' => ['nullable', 'int'], 'ingredients.weight' => ['required', 'array', new ArrayNotEmpty], 'ingredients.weight.*' => ['required', 'int'],