/**
  * Update the specified Comment in storage.
  * PUT/PATCH /comments/{id}
  *
  * @param  int              $id
  * @param Request $request
  *
  * @return Response
  */
 public function update($id, Request $request)
 {
     $input = $request->all();
     /** @var Comment $comment */
     $comment = $this->commentRepository->apiFindOrFail($id);
     $result = $this->commentRepository->updateRich($input, $id);
     $comment = $comment->fresh();
     return $this->sendResponse($comment->toArray(), "Comment updated successfully");
 }