Update README.md

This commit is contained in:
候学杰 2018-03-19 16:50:14 +08:00
parent f7e84885bc
commit e3cfc7e43b

View File

@ -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);
```