LikeDislikeController
class LikeDislikeController extends ApiGuardController (View source)
Class LikeDislikeController.
Methods
__construct(
LikeDislikeRepository $likeDislike,
LikeDislikeTransformer $likeDislikeTransformer)
LikeDislikeController constructor.
mixed
getLikes($id)
Return likes.
mixed
getLikesCount($id)
Return likes count.
mixed
getDislikes($id)
Return dislikes.
mixed
getDislikesCount($id)
Return dislikes count.
mixed
Details
at line line 52
__construct(
LikeDislikeRepository $likeDislike,
LikeDislikeTransformer $likeDislikeTransformer)
LikeDislikeController constructor.
at line line 67
mixed
getLikes($id)
Return likes.
at line line 81
mixed
getLikesCount($id)
Return likes count.
at line line 95
mixed
getDislikes($id)
Return dislikes.
at line line 109
mixed
getDislikesCount($id)
Return dislikes count.
at line line 123
mixed
store(
LikeDislikeStoreRequest $request)
Create and store like or dislike.