We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88f7426 commit 2e56b4aCopy full SHA for 2e56b4a
app/Model/User.php
@@ -10,7 +10,7 @@
10
/**
11
* @property int $id
12
*/
13
-class User implements Authenticatable
+class User extends Model implements Authenticatable
14
{
15
16
public function getId()
@@ -22,6 +22,7 @@ public static function retrieveById($key): ?Authenticatable
22
23
$res = di(UserCenterInterface::class)->getUserInfo((int)$key);
24
$user = new static();
25
+ $user->toArray();
26
$user->id = $res['id'];
27
return $user;
28
}
0 commit comments