rtconner / laravel-likeable

Trait for Laravel Eloquent models to allow easy implementation of a "like" or "favorite" or "remember" feature.
MIT License
402 stars 49 forks source link

Dislike function #4

Closed ortix closed 8 years ago

ortix commented 9 years ago

What about a "dislike" function? I think that would be a nice addition. So that way people can like, dislike, unlike and undislike.

UnrulyNatives commented 9 years ago

+1

Pandahisham commented 9 years ago

+1

k1ng440 commented 9 years ago

+1

rtconner commented 9 years ago

Any comments on if like and dislike should be mutually exclusive, i.e., you cannot like and dislike something at the same time?

k1ng440 commented 9 years ago

Yes.

If liked by the user, { dislike removes the like count } if disliked by the user, { like removes the dislike count } else add count to like/dislike

ortix commented 9 years ago

+1 mutually exclusive

liorocks commented 9 years ago

+1

evsign commented 9 years ago

+1 mutually exclusive. And maybe rating attribute, which is difference of likes and dislikes.

rtconner commented 8 years ago

Apparently I'm never going to build this. It's free code, and I don't need the feature myself.

If someone wants this, they'll have to create their own package, or do the changes needed to this package.