Skip to content

Latest commit

 

History

History
94 lines (57 loc) · 1.61 KB

CHANGELOG.md

File metadata and controls

94 lines (57 loc) · 1.61 KB

Changelog

All notable changes to laravel-reactions will be documented in this file

3.0.0 - 2024-06-11

  • Allow configuration for reacts_model and reacts_id_column.

2.8.0 - 2024-03-07

  • Laravel 11.x support

2.7.0 - 2023-02-14

  • Drop support for Laravel v6, v7
  • Laravel 10.x support

2.6.2 - 2022-12-13

  • Optimize Reaction Summary

2.6.1 - 2022-11-14

  • Add a publishable config file with a 'table_name' key

2.6.0 - 2022-02-11

  • Laravel 9.0 support
  • Drop support for Laravel 5.*

2.5.0 - 2020-09-09

  • Laravel 8.0 support

2.4.0 - 2020-03-09

  • Laravel 7.0 support

2.3.0 - 2019-09-18

  • Laravel 6.0 support

2.2.0 - 2019-04-01

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);

2.1.0 - 2019-03-20

  • Laravel 5.8 compatibility

2.0.0 - 2018-12-31

  • 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.

1.0.0 - 2018-07-19

  • initial release