yuges-code/laravel-reactable
最新稳定版本:1.0.1
Composer 安装命令:
composer require yuges-code/laravel-reactable
包简介
👍 Package for easily attaching reactions to Laravel eloquent models
README 文档
README
Build
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:
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-10-20