Go to file
2018-05-03 18:01:21 +08:00
src change default value 2018-05-03 18:01:21 +08:00
.gitignore init 2018-05-02 18:27:30 +08:00
composer.json fix 2018-05-02 19:27:49 +08:00
composer.lock logger 2018-05-02 19:24:15 +08:00
README.md Update README.md 2018-05-02 19:30:51 +08:00

Lumen 的sql记录组件

引入该组件后,如果 APP_DEBUG = true 时会自动将sql执行日志记录到 storage/logs/sql-{Y-m-d}.log 中。默认只保留最近15天的日志

引入

composer config repositories.lumen-sql-logger vcs git@git.int.haowumc.com:arch/lumen-sql-logger.git
composer require --dev arch/lumen-sql-logger

开启

if (env('APP_ENV') == 'local') {
    $app->register(Arch\EventServiceProvider::class);
}

###配置 在.env中增加如下配置

APP_NAME = api