Package for easily attaching reactions to Laravel eloquent models
Publishing the config file (config/reactable.php
) is optional:
php artisan vendor:publish --provider="Yuges\Reactable\Providers\ReactableServiceProvider" --tag="reactable-config"
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
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