public function show(Recipe $recipe) { $recipeProject = $recipe->getProjects()->toArray(); return view('recipes.show')->with('recipe', $recipe)->with('recipeProject', $recipeProject); }