app/Http/Controllers/QuestionsController.php
/**
     * Remove the specified resource from storage.
     *
     * @param  \App\Questions  $questions
     * @return \Illuminate\Http\Response
     */
Remove the specified resource from storage.
Remove the specified resource from storage .
public function destroy($id)
    {
        $question = Questions::findOrFail($id);
        if($question){
            $question->delete();
            return redirect('/questions')->with('error','Question delete Successfully.');
        }
    }
public function destroy ( $ id ) { $ question = Questions :: findOrFail ( $ id ) ; if ( $ question ) { $ question -> delete ( ) ; return redirect ( '/questions' ) -> with ( 'error' , 'Question delete Successfully.' ) ; } }
Remove the specified resource from storage.
Remove the specified resource from storage .