public function destroy(CommentRequest $request, Comment $comment)
    {
        try {

            $comment->delete();
            return $this->response->message(trans('messages.success.deleted', ['Module' => trans('blog::comment.name')]))
                ->code(202)
                ->status('success')
                ->url(guard_url('blog/comment/0'))
                ->redirect();

        } catch (Exception $e) {

            return $this->response->message($e->getMessage())
                ->code(400)
                ->status('error')
                ->url(guard_url('blog/comment/' . $comment->getRouteKey()))
                ->redirect();
        }

    }
public function destroy(CommentRequest $request, Comment $comment)
    {
        try {

            $comment->delete();
            return $this->response->message(trans('messages.success.deleted', ['Module' => trans('blog::comment.name')]))
                ->code(202)
                ->status('success')
                ->url(guard_url('blog/comment/0'))
                ->redirect();

        } catch (Exception $e) {

            return $this->response->message($e->getMessage())
                ->code(400)
                ->status('error')
                ->url(guard_url('blog/comment/' . $comment->getRouteKey()))
                ->redirect();
        }

    }
public function destroy ( CommentRequest $ request , Comment $ comment ) { try { $ comment -> delete ( ) ; return $ this -> response -> message ( trans ( 'messages.success.deleted' , [ 'Module' => trans ( 'blog::comment.name' ) ] ) ) -> code ( 202 ) -> status ( 'success' ) -> url ( guard_url ( 'blog/comment/0' ) ) -> redirect ( ) ; } catch ( Exception $ e ) { return $ this -> response -> message ( $ e -> getMessage ( ) ) -> code ( 400 ) -> status ( 'error' ) -> url ( guard_url ( 'blog/comment/' . $ comment -> getRouteKey ( ) ) ) -> redirect ( ) ; } }
Remove the comment.

@param Model   $comment

@return Response
Remove the comment .