/** * FAQS Page * * @return $this */ public function faqs() { $data = ['parentPage' => 'Contact Us', 'page' => 'FQAs', 'title' => 'Teleaus | FAQs Page', 'faqs' => Faq::orderBy('created_at', 'desc')->get()]; return view('faqs')->with($data); }
public function index() { $faqs = Faq::orderBy('local', 'asc')->orderBy('pergunta', 'asc')->paginate(10); return view('admin.faq.index', ['faqs' => $faqs]); }