What's Changed
- Add down method to comments table migration for proper rollback support by @csh-tech in #22
- Add comment reactions feature with emoji support by @csh-tech in #20
Full Changelog: v0.2.0...v0.3.0
Upgrade Guide
1. Re-publish the migrations
Re-run the package migrations to ensure the latest changes are applied:
php artisan vendor:publish --tag="commentable-migrations"Then run the migrations if needed:
php artisan migrate2. Update the configuration
Add the following reaction configuration to your commentable.php config file:
/*
|--------------------------------------------------------------------------
| Reactions
|--------------------------------------------------------------------------
*/
'reaction' => [
'model' => Tilto\Commentable\Models\CommentReaction::class,
'allowed' => ['๐', 'โค๏ธ', '๐', '๐ฎ', '๐ข', '๐ค'],
],Thatโs it! Your application is now ready to use comment reactions.