public function index($lang, $cat = FALSE) { if ($cat) { $faqs = Faq::getByCat($cat); } else { $faqs = Faq::all(); } $cats = Faq::getCats(); return view('faq.index')->with(['faqs' => $faqs, 'cats' => $cats]); }