All notable changes to laravel-reactions
will be documented in this file
- Allow configuration for
reacts_model
andreacts_id_column
.
- Laravel 11.x support
- Drop support for Laravel v6, v7
- Laravel 10.x support
- Optimize Reaction Summary
- Add a publishable config file with a 'table_name' key
- Laravel 9.0 support
- Drop support for Laravel 5.*
- Laravel 8.0 support
- Laravel 7.0 support
- Laravel 6.0 support
- 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.
- new
reacted()
method added on in reactable model.
$article->reacted(); // current login user
- new
reactedOn($article)
method added to reacts model.
$user->reactedOn($article);
- Laravel 5.8 compatibility
- package namespace changed from Hkp22 to Qirolab.
- package vendor name changed from hkp22 to qirolab. Now to install this package required new command to run
composer require qirolab/laravel-reactions
.
- initial release