/**
  * Display the specified Comment.
  *
  * @param  int $id
  *
  * @return Response
  */
 public function show($id)
 {
     $comment = $this->commentRepository->findCommentById($id);
     if (empty($comment)) {
         Flash::error('Comment not found');
         return redirect(route('comments.index'));
     }
     return view('comments.show')->with('comment', $comment);
 }
 /**
  * Remove the specified Comment from storage.
  *
  * @param  int $id
  *
  * @return Response
  */
 public function destroy($id)
 {
     $comment = $this->commentRepository->find($id);
     if (empty($comment)) {
         Flash::error('Comment not found');
         return redirect(route('comments.index'));
     }
     $this->commentRepository->delete($id);
     Flash::success('Comment deleted successfully.');
     return redirect(route('comments.index'));
 }
 /**
  * Remove the specified Comment from storage.
  * DELETE /comments/{id}
  *
  * @param  int $id
  *
  * @return Response
  */
 public function destroy($id)
 {
     $this->commentRepository->apiDeleteOrFail($id);
     return $this->sendResponse($id, "Comment deleted successfully");
 }