orderBy('slug', 'ASC')->paginate(9); return view('fo.pages.recipes.index', compact('publishedRecipes')); } /** * Return a view with a specific model. * * @param \App\Models\Recipe $publishedRecipe * @return \Illuminate\Contracts\View\View */ public function show(Recipe $publishedRecipe) { // 3 Recettes. $publishedRecipes = Recipe::where('status', true) ->where('id', '!=', $publishedRecipe->id) ->take(3) ->get(); $recipe = $publishedRecipe; return view('fo.pages.recipes.recipe', compact('recipe', 'publishedRecipes')); } }