Releases: qirolab/laravel-reactions
Releases · qirolab/laravel-reactions
v3.0.0
v2.8.0
v2.7.0
v2.6.2
v2.6.1
v2.6.0
v2.5.0
v2.4.0
v2.3.0
v2.2.0
Fixed
- Changed output for
reactionSummary()
and 'reaction_summary' method in reactable model.
$article->reactionSummary();
$article->reaction_summary;
// example
$article->reaction_summary->toArray();
// output
/*
[
"like" => 5,
"dislike" => 2,
"clap" => 4,
"hooray" => 1
]
*/
- Fixed
toggleReaction()
function. Now it will returnQirolab\Laravel\Reactions\Models\Reaction
object.
Added
- new
reacted()
method added on in reactable model.
$article->reacted(); // current login user
- new
reactedOn($article)
method added to reacts model.
$user->reactedOn($article);