laravel-reactable

Laravel-reactable

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