bfg/admin-audit
最新稳定版本:2.0.0
Composer 安装命令:
composer require bfg/admin-audit
包简介
The auditing viewer for bfg admin
README 文档
README
Install
composer require bfg/admin-audit
Admin install
php artisan admin:extension bfg/admin-audit --install
Setup auditing
For more information on how to use the package, please refer to our official documentation available on laravel-auditing.com or in the repository documentation file. Our documentation provides detailed instructions on how to install and use the package, as well as examples and best practices for auditing in Laravel applications.
Publish configs
php artisan vendor:publish --provider "OwenIt\Auditing\AuditingServiceProvider" --tag="config"
Publish migrations
php artisan vendor:publish --provider "OwenIt\Auditing\AuditingServiceProvider" --tag="migrations"
Migrate
php artisan migrate
Enable console audit
Open configs/audit.php and enable console config:
... /* |-------------------------------------------------------------------------- | Audit Console |-------------------------------------------------------------------------- | | Whether console events should be audited (eg. php artisan db:seed). | */ 'console' => true, ...
Add audit to model
Add implement
use OwenIt\Auditing\Contracts\Auditable; ... class User extends Authenticatable implements Auditable { use \OwenIt\Auditing\Auditable; ... }
统计信息
- 总下载量: 49.33k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-08-05