/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $faqs = Faq::getAll(); // return $faqs; return view('faq', compact('faqs')); }