app/Http/Controllers/QuestionsController.php
/**
     * Show the form for editing the specified resource.
     *
     * @param  \App\Questions  $questions
     * @return \Illuminate\Http\Response
     */
Show the form for editing the specified resource.
Show the form for editing the specified resource .
public function edit($id)
    {
        $question = Questions::findOrFail($id);
        if($question){
       return view('admin.questions.edit',['question'=>$question]);
        }
    }
public function edit ( $ id ) { $ question = Questions :: findOrFail ( $ id ) ; if ( $ question ) { return view ( 'admin.questions.edit' , [ 'question' => $ question ] ) ; } }
Show the form for editing the specified resource.
Show the form for editing the specified resource .