Ejemplo n.º 1
0
 public function browseIngredients()
 {
     $ingredients = \App\Ingredient::has('recipes')->orderBy('name')->distinct()->get();
     return view('show')->with('ingredients', $ingredients);
 }