app/Http/Controllers/QuestionController.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()
    {
        $questions = Question::orderBy('created_at','desc')->get();
        return view('backend.questions.index', compact('questions'));
    }
public function index ( ) { $ questions = Question :: orderBy ( 'created_at' , 'desc' ) -> get ( ) ; return view ( 'backend.questions.index' , compact ( 'questions' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .