bitfumes/laravel-activity-recorder
Composer 安装命令:
composer require bitfumes/laravel-activity-recorder
包简介
Your Package Description here
README 文档
README
Install
composer require bitfumes/laravel-activity-recorder
Usage
This package record model events in activities table in your database.
Using Trait
use Illuminate\Database\Eloquent\Model; use Bitfumes\Activity\Traits\RecordActivity; class Item extends Model { use RecordActivity; }
Activity To Record
If you does't specify, then it will record only created model event.
Record other activities just need to specify a static variable in your model to track other model events also.
class Item extends Model { use RecordActivity; protected static $eventsToRecord = ['created','deleted']; }
Now this will also going to record deleted event of that model.
Testing
Run the tests with:
vendor/bin/phpunit
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security-related issues, please email sarthak@bitfumes.com instead of using the issue tracker.
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 297
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-01-07