laravel-likeable
laravel-likeable copied to clipboard
Trait for Laravel Eloquent models to allow easy implementation of a "like" or "favorite" or "remember" feature.
I want to display users with most likes. So is there any way to use your package in controller? Because it need a class to use. What is the proper...
How can I use it with API with Multi Model not just Article only??
how to get list of users who liked the post?
so i want to display something like Kieran liked users post "Postname" Kieran liked users comment "Comment" How?
This package has a race condition. https://github.com/rtconner/laravel-likeable/blob/d3b61686703a23a4aa61f593e55bc10b87f60621/src/Likeable.php#L75-L84
I am using morph map alias, but not working, ```php public function boot() { Relation::morphMap([ //'blog' => \App\Models\Blog::class, 'user' => \App\Models\User::class, 'activity' => \App\Models\Activity::class, 'photo' => \App\Models\Photo::class, 'photoAlbum' => \App\Models\PhotoAlbum::class,...
Cascades
I've noticed a few things about cascading when deleting various models. If a user likes a post and either the user or the post is deleted, the likes aren't deleted...
Hello Is there any way to like an article by another model instead of user. thanks .