Skip to content

Releases: qirolab/laravel-reactions

v3.0.0

11 Jun 09:54
Compare
Choose a tag to compare
  • Allow configuration for reacts_model and reacts_id_column.

v2.8.0

07 Mar 16:04
Compare
Choose a tag to compare
  • Laravel 11.x support

v2.7.0

14 Feb 11:51
Compare
Choose a tag to compare
  • Drop support for Laravel v6, v7
  • Laravel 10.x support

v2.6.2

13 Dec 17:06
Compare
Choose a tag to compare
  • Optimize Reaction Summary

v2.6.1

14 Nov 18:23
Compare
Choose a tag to compare
  • Add a publishable config file with a 'table_name' key

v2.6.0

11 Feb 09:26
Compare
Choose a tag to compare
  • Laravel 9.0 support
  • Drop support for Laravel 5.*

v2.5.0

09 Sep 12:29
e1342b3
Compare
Choose a tag to compare
  • Laravel 8.0 support

v2.4.0

09 Mar 10:25
Compare
Choose a tag to compare
  • Laravel 7.0 support

v2.3.0

18 Sep 17:10
Compare
Choose a tag to compare
  • Laravel 6.0 support

v2.2.0

01 Apr 11:14
Compare
Choose a tag to compare

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 return Qirolab\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);