yuges-code/laravel-reactable

Package for easily attaching reactions to Laravel eloquent models

1.0.6 2025-02-19 09:59 UTC

This package is auto-updated.

Last update: 2025-03-21 19:26:35 UTC


README

GitHub Release Packagist Downloads GitHub License Packagist Stars

Package for easily attaching reactions to Laravel eloquent models

Installation

Publishing the config file

Publishing the config file (config/reactable.php) is optional:

php artisan vendor:publish --provider="Yuges\Reactable\Providers\ReactableServiceProvider" --tag="reactable-config"

Preparing the database

You need to publish the migration to create the reactions table:

php artisan vendor:publish --provider="Yuges\Reactable\Providers\ReactableServiceProvider" --tag="reactable-migrations"

After that, you need to run migrations.

php artisan migrate

Publishing the seeders

You need to publish the seeders to fill out the reaction type table:

php artisan vendor:publish --provider="Yuges\Reactable\Providers\ReactableServiceProvider" --tag="reactable-seeders"

After that, you need to run seeders.

php artisan db:seed --class=ReactionTypeSeeder