composer require shuxiaoyuan666/implogs
php artisan vendor:publish
// 选择: Shuxiaoyuan666\Implogs\ImplogsServiceProvider
# 配置全局中间件
在 app/Http/Kernel.php 文件的 $middleware 数组中添加如下一行:
\Shuxiaoyuan666\Implogs\Middleware\ImpRequestLogMiddleware::class,
# 配置 command 任务调度
在 app/Console/Kernel.php 文件的 schedule 方法中添加如下一行:
withoutOverlapping: 避免任务重复
everyMinute: 每分钟执行一次
$schedule->command('ImpRequestLog')->withoutOverlapping()->everyMinute();
Write a few lines about the usage of this package.
Run the tests with:
vendor/bin/phpunit
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security-related issues, please email sxy@shuxiaoyuan.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.