Skip to content

Commit 7950dc4

Browse files
authored
Update README.md
1 parent 094e021 commit 7950dc4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,12 @@ public function login()
9999

100100
// 自动获取当前应用下的jwt配置
101101
return json([
102-
'token' => Jwt::token($uid, ['params1' => 1, 'params2' => 2']),
102+
'token' => Jwt::token($uid, ['params1' => 1, 'params2' => 2'])->toString(),
103103
]);
104104

105105
// 自定义用户模型
106106
return json([
107-
'token' => Jwt::token($uid, ['model' => CustomMember::class]),
107+
'token' => Jwt::token($uid, ['model' => CustomMember::class])->toString(),
108108
]);
109109
}
110110
```

0 commit comments

Comments
 (0)