Owl\Http\Controllers\CommentController::destroy PHP Method

destroy() public method

public destroy ( )
    public function destroy()
    {
        if ($comment = $this->commentService->getCommentById(\Input::get('id'))) {
            $this->commentService->deleteComment($comment->id);
            $this->status = 200;
        }
        return \Response::make("", $this->status);
    }