/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { $item = Lunch::findOrFail($id); $meal1 = Meal1::lists('name', 'id')->all(); $meal2 = Meal2::lists('name', 'id')->all(); $garnishs = Garnish::lists('name', 'id')->all(); $salads = Salad::lists('name', 'id')->all(); $drinks = Drink::lists('name', 'id')->all(); $additions = Addition::allWithSelection($item->addition_list); return view('admin.lunchs.edit', compact('item', 'meal1', 'meal2', 'garnishs', 'salads', 'drinks', 'additions')); }