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