File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ public function rules()
3030 {
3131 return [
3232 'is_enabled ' => 'required|boolean ' ,
33- 'items ' => 'required| array ' ,
33+ 'items ' => 'array ' ,
3434 'items.*.id ' => 'required|integer ' ,
3535 'items.*.type ' => ['required ' , Rule::enum (MenuItemTypeEnum::class)],
3636 'items.*.sort ' => 'required|integer ' ,
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ public function getMenuItems(): Collection
5858 $ cocktails = $ this ->menuCocktails ->map (fn (MenuCocktail $ menuCocktail ) => MenuItem::fromMenuCocktail ($ menuCocktail ))->values ();
5959 $ ingredients = $ this ->menuIngredients ->map (fn (MenuIngredient $ menuIngredient ) => MenuItem::fromMenuIngredient ($ menuIngredient ))->values ();
6060
61- return $ cocktails-> merge ( $ ingredients)-> values ( );
61+ return collect ([... $ cocktails, ... $ ingredients] );
6262 }
6363
6464 /**
You can’t perform that action at this time.
0 commit comments