Ejemplo n.º 1
0
 /**
  * Remove the specified ResourceLike from storage.
  *
  * @param  int $id
  *
  * @return Response
  */
 public function destroy($id)
 {
     $resourceLike = $this->resourceLikeRepository->find($id);
     if (empty($resourceLike)) {
         Flash::error('ResourceLike not found');
         return redirect(route('resourceLikes.index'));
     }
     $this->resourceLikeRepository->delete($id);
     Flash::success('ResourceLike deleted successfully.');
     return redirect(route('resourceLikes.index'));
 }
 /**
  * Remove the specified ResourceLike from storage.
  * DELETE /resourceLikes/{id}
  *
  * @param  int $id
  *
  * @return Response
  */
 public function destroy($id)
 {
     $this->resourceLikeRepository->apiDeleteOrFail($id);
     return $this->sendResponse($id, "ResourceLike deleted successfully");
 }