PHP code example of nexusbrother / laravel-admin-operation-log-statistic
1. Go to this page and download the library: Download nexusbrother/laravel-admin-operation-log-statistic library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
nexusbrother / laravel-admin-operation-log-statistic example snippets
'operation-log-statistic' => [
'enable' => env('OPERATION_LOG_STATISTIC_ENABLE', false), // 是否启用统计功能
'daily_at' => env('OPERATION_LOG_STATISTIC_AT', '09:55'), // 统计任务执行时间
],
bash
# 发布配置文件
php artisan vendor:publish --tag=operation-log-statistic-config
# 发布迁移文件
php artisan vendor:publish --tag=operation-log-statistic-migrations
# 发布语言文件
php artisan vendor:publish --tag=operation-log-statistic-lang
bash
php artisan migrate
bash
# 启动定时任务处理器
php artisan schedule:work
bash
php artisan admin-operation-logs:statistic
bash
# 运行所有代码质量检查
./scripts/run-code-quality.sh
# 单独运行 Laravel Pint(代码风格检查)
php vendor/bin/pint --test
# 单独运行 PHPStan(静态代码分析)
php vendor/bin/phpstan analyze
# 单独运行 PHPUnit(单元测试)
php vendor/bin/phpunit