/** * Display the specified resource. * * @param int $id * @return Response */ public function show($id) { $categories = ChantsCategories::all(); $categorie = ChantsCategories::where('slug', $id)->first(); return view('chants.show', ['categorie' => $categorie, 'categories' => $categories]); }
public function chants() { $chant = Chants::find('24'); $categories = ChantsCategories::all(); return view('page/chants', ["chant" => $chant, "categories" => $categories]); }