app/Http/Controllers/QuestionController.php
/**
     * Show the form for creating a new resource.
     *
     * @return \Illuminate\Http\Response
     */
Show the form for creating a new resource.
@return \Illuminate\Http\Response
Show the form for creating a new resource . @return \ Illuminate \ Http \ Response
public function create()
    {
        $surveys = Survey::pluck('title','id')->toArray();
        return view('backend.questions.create',compact('surveys'));
    }
public function create ( ) { $ surveys = Survey :: pluck ( 'title' , 'id' ) -> toArray ( ) ; return view ( 'backend.questions.create' , compact ( 'surveys' ) ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .