app/Http/Controllers/QuestionsController.php
/**
     * Show the form for creating new Question.
     *
     * @return \Illuminate\Http\Response
     */
Show the form for creating new Question.
@return \Illuminate\Http\Response
Show the form for creating new Question . @return \ Illuminate \ Http \ Response
public function create(Request $request)
    {
        $exams = Exam::get()->pluck('exam_title','exam_id');
        return view('questions.create', compact('exams'));
    }
public function create ( Request $ request ) { $ exams = Exam :: get ( ) -> pluck ( 'exam_title' , 'exam_id' ) ; return view ( 'questions.create' , compact ( 'exams' ) ) ; }
Show the form for creating new Question.
Show the form for creating new Question .
// $exams = Exam::all();