From c4acd8a3589d6d291a997bf189658d27fd747b88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=80=99=E5=AD=A6=E6=9D=B0?= Date: Wed, 2 May 2018 18:35:38 +0800 Subject: [PATCH] readme --- README.md | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 4e2e7fb..7d015e9 100644 --- a/README.md +++ b/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 +``` +