https://github.com/yuges-code/laravel-reactable
Package for easily attaching reactions to Laravel eloquent models ๐ ๐ฅณ ๐ ๐ ๐
https://github.com/yuges-code/laravel-reactable
laravel morphable php reactions
Last synced: about 2 months ago
JSON representation
Package for easily attaching reactions to Laravel eloquent models ๐ ๐ฅณ ๐ ๐ ๐
- Host: GitHub
- URL: https://github.com/yuges-code/laravel-reactable
- Owner: yuges-code
- License: mit
- Created: 2025-02-10T15:46:38.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-21T19:23:38.000Z (about 1 year ago)
- Last Synced: 2025-10-12T20:23:10.522Z (6 months ago)
- Topics: laravel, morphable, php, reactions
- Language: PHP
- Homepage: https://yuges-code.github.io/laravel-reactable/
- Size: 22.5 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Build
Project
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](LICENSE) for more information.
# ๐๐ผโโ๏ธ Authors Information
Created in 2025 by:
- [Yuges-code](https://github.com/yuges-code)
- [All Contributors](../../contributors)