From 3b44aadd21f8b1b6835aaa388b7df39b7e27a430 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=80=99=E5=AD=A6=E6=9D=B0?= Date: Thu, 31 Jan 2019 14:47:58 +0800 Subject: [PATCH 1/2] Update README.md --- README.md | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/README.md b/README.md index 20d68ea..75b4940 100644 --- a/README.md +++ b/README.md @@ -14,26 +14,8 @@ composer require paidian/php-auth-client ### 代码中启用 -* 注册中间件 - -```php -$app->routeMiddleware([ - 'auth' => PdAuth\Middleware\Authenticate::class, -]); -``` - * 注册服务 ```php $app->register(PdAuth\PdAuthServiceProvider::class); ``` - -### 配置 - -在项目 .env 文件中增加如下配置 - -``` -PDAUTH_APP_ID=appid -PDAUTH_SECRET=123456 -PDAUTH_HOST=http://auth.dev.haowumc.com -``` \ No newline at end of file From 192cd19fec30e45b7a516c78ec89bfcb5e8ef66b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=80=99=E5=AD=A6=E6=9D=B0?= Date: Thu, 31 Jan 2019 14:48:47 +0800 Subject: [PATCH 2/2] Update README.md