Skip to content

Commit 6fabb46

Browse files
authored
Update README.md
1 parent a43fac8 commit 6fabb46

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,7 @@ $ composer require xiaodi/think-jwt:dev-master
1717
```
1818

1919
## 使用
20-
1. 命令生成签名key
21-
```sh
22-
$ php think jwt:make
23-
```
24-
25-
2. 配置
20+
1. 配置
2621
`config/jwt.php`
2722

2823
完整多应用配置
@@ -102,6 +97,11 @@ public function login()
10297
return json([
10398
'token' => Jwt::token($uid, ['params1' => 1, 'params2' => 2']),
10499
]);
100+
101+
// 自定义用户模型
102+
return json([
103+
'token' => Jwt::token($uid, ['model' => CustomMember::class]),
104+
]);
105105
}
106106
```
107107

0 commit comments

Comments
 (0)