app/Http/Controllers/AnswerController.php
/**
     * Remove the specified resource from storage.
     *
     * @param  \App\Answer  $answer
     * @return \Illuminate\Http\Response
     */
Remove the specified resource from storage.
Remove the specified resource from storage .
public function destroy(Question $question,Answer $answer)
    {
        $this->authorize('delete',$answer);
        $answer->delete();
        return back()->with('success','Answer Delete Hoise');
    }
public function destroy ( Question $ question , Answer $ answer ) { $ this -> authorize ( 'delete' , $ answer ) ; $ answer -> delete ( ) ; return back ( ) -> with ( 'success' , 'Answer Delete Hoise' ) ; }
Remove the specified resource from storage.
Remove the specified resource from storage .