Example #1
0
 public function manage($id)
 {
     $meal = Meal::find($id);
     $portions = Portion::all();
     $portionTypes = PortionType::all();
     return \View::make('meals.add')->with(['portionTypes' => $portionTypes, 'meal' => $meal, 'portions' => $portions])->render();
 }
Example #2
0
 public function ingredients($id)
 {
     $portion = Portion::find($id);
     $types = PortionType::all();
     return \View::make('portions.ingredients')->with(['types' => $types, 'portion' => $portion])->render();
 }