qirolab / laravel-reactions Goto Github PK
View Code? Open in Web Editor NEWLaravel reactions package for implementing reactions (eg: like, dislike, love, emotion, etc) on Eloquent models.
Home Page: https://qirolab.com
License: MIT License
Laravel reactions package for implementing reactions (eg: like, dislike, love, emotion, etc) on Eloquent models.
Home Page: https://qirolab.com
License: MIT License
Thanks for the great package. I updated to the latest version 2.6.2, but my reaction summary no longer differentiates between emojis, they are all grouped as the same. In 2.6.0 this worked fine.
I believe the user->reactTo($article, 'like') does not not honor "type" in query in Qirolab\Laravel\Reactions\Traits\Reacts
line 22 which will fail to check multiple reactions on same model and always add/delete the first
Could you Update ?
Hi, how can I show the count of a certain reaction? I mean, $article->reactionSummary() shows an array of all reactions, but I'd like to show the "Like" reaction count
My goal is to make the reactions function like this https://i.imgur.com/UrUrWSv.gifv
I just need a quick start as to how I would do this or a point in the right direction. Cheers.
This package is really great, but I think you should add possibility to get informations about users who reacted on model and which reactions they use.
I trying to return list for model like in example bellow.
John Smith - Love
Ammy Brown - Awesome
Is there a method to get all likes, love, reactions paid to the current logged in user?
Hey folks,
I was looking into the documentation, since I decided to use the package in a project that I'm developing, and well, I found it a little bit weird the fact that I can only use the Reacts
trait to the User
model.
For example, in my project I have a User 1:n Profile
relationship, and well, users can interact with each other contents using more than one Profile, and that means that the Reacts
should be implemented to the Profile
and not to the User
. And, well, I kind of probably assume that it was possible when in the documentation I found $article->react('like', $user);
.
But... The thing is... how do you folks feel about the possibility to have the Reacts
to be implemented to any model?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.