We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a43fac8 commit 6fabb46Copy full SHA for 6fabb46
1 file changed
README.md
@@ -17,12 +17,7 @@ $ composer require xiaodi/think-jwt:dev-master
17
```
18
19
## 使用
20
-1. 命令生成签名key
21
-```sh
22
-$ php think jwt:make
23
-```
24
-
25
-2. 配置
+1. 配置
26
`config/jwt.php`
27
28
完整多应用配置
@@ -102,6 +97,11 @@ public function login()
102
97
return json([
103
98
'token' => Jwt::token($uid, ['params1' => 1, 'params2' => 2']),
104
99
]);
100
+
101
+ // 自定义用户模型
+ return json([
+ 'token' => Jwt::token($uid, ['model' => CustomMember::class]),
+ ]);
105
}
106
107
0 commit comments