Skip to content

Latest commit

 

History

History
122 lines (85 loc) · 2.78 KB

File metadata and controls

122 lines (85 loc) · 2.78 KB
Build
GitHub Branch Check Runs GitHub Tests Action Status
Project
GitHub Release Packagist Downloads GitHub License Packagist Stars Packagist Dependency Version
Quality

Laravel Reactable

👍 Package for easily attaching reactions to Laravel eloquent models


💿 Installation

→ Composer

You can install the package via composer:

composer require yuges-code/laravel-reactable

→ Publishing Config

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

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

→ Publishing Migrations

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

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

→ Running Migrations

After that, you need to run migrations:

php artisan migrate

→ Publishing Seeders

You need to publish the seeder to seed the reaction types table:

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

→ Running Seeders

After that, you need to run seeders:

php artisan db:seed

🧪 Running Tests

→ PHPUnit tests

To run tests, run the following command:

composer test

⚖️ License

The MIT License (MIT). Please see License File for more information.


🙆🏼‍♂️ Authors Information

Created in 2025 by: