fatyrabbit / sql-log
0.6.0
2021-04-22 02:02 UTC
Requires
- php: >=5.6
- illuminate/contracts: ~5.0
- illuminate/http: ~5.3
- illuminate/support: ~5.3
- laravel/framework: ~5.3
- monolog/monolog: ~1.11
This package is auto-updated.
Last update: 2024-09-22 09:34:09 UTC
README
Laravel 5.3
对于5.3以上的Laravel版本,请继续以下步骤。
安装Sql Log
composer require fatty-rabbit/sql-log
添加服务提供者
'providers' => array( # other providers omitted 'FattyRabbit\SqlLog\SqlLogSearviceProvider', );
将包配置文件发布到 config/sqllog.php
$ php artisan vendor:publish --provider="FattyRabbit\SqlLog\SqlLogSearviceProvider"
然后根据需要编辑已发布的配置文件 config/sqllog.php
。
<?php return [ 'base_level' => 'debug', 'ignore' => [ 'ip' => [ '127.0.0.1', ], 'uri' => [], ], ];