coziboy/log-user-activity-for-backpack
最新稳定版本:1.0.4
Composer 安装命令:
composer require coziboy/log-user-activity-for-backpack
包简介
Log user activity in backpack
README 文档
README
A simple interface for spatie/laravel-activitylog for Laravel Backpack.
Installation
- In your terminal
# install the package with composer $ composer require coziboy/log-user-activity-for-backpack # Publish view $ php artisan vendor:publish --provider="Coziboy\LogUserActivityForBackpack\LogUserActivityForBackpackServiceProvider" # [optional] Add a sidebar_content item for it php artisan backpack:add-sidebar-content "<li class='nav-item'><a class='nav-link' href='{{ backpack_url('log-user') }}'><i class='nav-icon la la-history'></i> Log User Activity</a></li>"
- Finish all installation steps for spatie/laravel-activitylog, which has been pulled as a dependency. Run its migrations. Most likely it's:
php artisan vendor:publish --provider="Spatie\Activitylog\ActivitylogServiceProvider" --tag="migrations" php artisan migrate // To make this work all you need to do is let your model use the Spatie\Activitylog\Traits\LogsActivity-trait
- Change guard configuration values in
config/backpack/base.php
'guard' => null,
Change log
Please see the changelog for more information on what has changed recently.
Testing
$ composer test
Contributing
Please see contributing.md for details and a todolist.
Security
If you discover any security related issues, please email tolong@buatin.website instead of using the issue tracker.
Credits
License
MIT. Please see the license file for more information.
统计信息
- 总下载量: 4.73k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-01-22