readme
This commit is contained in:
parent
da4a1654cd
commit
c4acd8a358
20
README.md
20
README.md
|
@ -1,9 +1,21 @@
|
|||
# Lumen 的sql记录组件
|
||||
# Lumen 的sql记录组件
|
||||
|
||||
开启
|
||||
### 引入
|
||||
```bash
|
||||
composer config repositories.lumen-sql-logger vcs git@git.int.haowumc.com:arch/lumen-sql-logger.git
|
||||
composer require --dev arch/lumen-sql-logger
|
||||
```
|
||||
|
||||
### 开启
|
||||
```php
|
||||
if (env('APP_ENV') == 'local') {
|
||||
$app->register(Arch\EventServiceProvider::class);
|
||||
$app->register(Arch\EventServiceProvider::class);
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
###配置
|
||||
在.env中增加如下配置
|
||||
```bash
|
||||
APP_NAME = api
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user