Skip to content

Commit ec4d294

Browse files
authored
Update README.md
1 parent ffd4164 commit ec4d294

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ public function login()
109109

110110
## Token 验证
111111

112+
自动获取当前应用(多应用下)配置。
113+
112114
### 手动验证
113115
```php
114116
use xiaodi\JWTAuth\Facade\Jwt;
@@ -135,7 +137,11 @@ class User {
135137
```php
136138
use xiaodi\JWTAuth\Middleware\Jwt;
137139

140+
// 自动获取当前应用配置
138141
Route::get('/hello', 'index/index')->middleware(Jwt::class);
142+
143+
// 自定义应用 使用api应用配置
144+
Route::get('/hello', 'index/index')->middleware(Jwt::class, 'api');
139145
```
140146

141147
## Token 自动获取

0 commit comments

Comments
 (0)