/**
  * Update the specified ResourceLike in storage.
  * PUT/PATCH /resourceLikes/{id}
  *
  * @param  int              $id
  * @param Request $request
  *
  * @return Response
  */
 public function update($id, Request $request)
 {
     $input = $request->all();
     /** @var ResourceLike $resourceLike */
     $resourceLike = $this->resourceLikeRepository->apiFindOrFail($id);
     $result = $this->resourceLikeRepository->updateRich($input, $id);
     $resourceLike = $resourceLike->fresh();
     return $this->sendResponse($resourceLike->toArray(), "ResourceLike updated successfully");
 }
 /**
  * Update the specified ResourceLike in storage.
  *
  * @param  int              $id
  * @param UpdateResourceLikeRequest $request
  *
  * @return Response
  */
 public function update($id, UpdateResourceLikeRequest $request)
 {
     $resourceLike = $this->resourceLikeRepository->find($id);
     if (empty($resourceLike)) {
         Flash::error('ResourceLike not found');
         return redirect(route('resourceLikes.index'));
     }
     $this->resourceLikeRepository->updateRich($request->all(), $id);
     Flash::success('ResourceLike updated successfully.');
     return redirect(route('resourceLikes.index'));
 }