public function faq() { $faq = Faq::all(); // POUR PAGE TYPE $lastActu = Actualites::orderBy('dateActualite', 'desc')->take(1)->get(); $lastInfo = Alerte::orderBy('dateAlerte', 'desc')->take(1)->get(); //-------------------- return View::make('public.pages.faq')->with('faq', $faq)->with('lastActu', $lastActu)->with('lastInfo', $lastInfo); }
public function getFaqs() { $faqs = Faq::all(); return View::make('home.faqs')->with('faqs', $faqs); }
function faq() { $faq = Faq::all(); return View::make('private.pages.faq')->with('faq', $faq); }
public function get_index() { $faqs = Faq::all(); return View::make('faqs.index')->with('faqs', $faqs); }