From e3cfc7e43b3f5797576e82ac7c7eaaaa717990b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=80=99=E5=AD=A6=E6=9D=B0?= Date: Mon, 19 Mar 2018 16:50:14 +0800 Subject: [PATCH] Update README.md --- README.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f522003..11b08e0 100644 --- a/README.md +++ b/README.md @@ -14,14 +14,17 @@ composer require arch/php-auth-client ### 代码中启用 -注册中间件 -```PHP +* 注册中间件 + +```php $app->routeMiddleware([ 'auth' => PdAuth\Middleware\Authenticate::class, ]); ``` -注册服务 -```PHP + +* 注册服务 + +```php $app->register(PdAuth\PdAuthServiceProvider::class); ```