app/Http/Controllers/QuestionController.php
/**
     * Show the form for editing the specified resource.
     *
     * @param  \App\Models\Question  $question
     * @return \Illuminate\Http\Response
     */
Show the form for editing the specified resource.
Show the form for editing the specified resource .
public function edit(Question $question)
    {
        $surveys = Survey::pluck('title','id')->toArray();
        return view('backend.questions.edit',compact('question','surveys'));
    }
public function edit ( Question $ question ) { $ surveys = Survey :: pluck ( 'title' , 'id' ) -> toArray ( ) ; return view ( 'backend.questions.edit' , compact ( 'question' , 'surveys' ) ) ; }
Show the form for editing the specified resource.
Show the form for editing the specified resource .