app/Http/Controllers/AdminFaqController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index()
    {
        $faqs = Faq::orderBy('sort-index')->paginate(10);
        $faq_chapters = FaqChapter::pluck('name','id')->all();
        return view('admin.faqs.index', compact('faqs', 'faq_chapters'));
    }
public function index ( ) { $ faqs = Faq :: orderBy ( 'sort-index' ) -> paginate ( 10 ) ; $ faq_chapters = FaqChapter :: pluck ( 'name' , 'id' ) -> all ( ) ; return view ( 'admin.faqs.index' , compact ( 'faqs' , 'faq_chapters' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .
//