Skip to content

Commit 2e56b4a

Browse files
committed
1
1 parent 88f7426 commit 2e56b4a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/Model/User.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
/**
1111
* @property int $id
1212
*/
13-
class User implements Authenticatable
13+
class User extends Model implements Authenticatable
1414
{
1515

1616
public function getId()
@@ -22,6 +22,7 @@ public static function retrieveById($key): ?Authenticatable
2222
{
2323
$res = di(UserCenterInterface::class)->getUserInfo((int)$key);
2424
$user = new static();
25+
$user->toArray();
2526
$user->id = $res['id'];
2627
return $user;
2728
}

0 commit comments

Comments
 (0)