diff --git a/app/Models/User.php b/app/Models/User.php index 0bae27e2..95208443 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -11,20 +11,21 @@ use Lorisleiva\LaravelSearchString\Concerns\SearchString; use Tymon\JWTAuth\Contracts\JWTSubject; /** - * @property int $uid - * @property string $email - * @property string $password - * @property string $nickname - * @property int $avatar - * @property int $score - * @property int $permission - * @property string $ip - * @property string $last_sign_at - * @property string $register_at - * @property bool $verified - * @property string $player_name - * @property Collection $players - * @property Collection $closet + * @property int $uid + * @property string $email + * @property string $password + * @property string $nickname + * @property string|null $locale + * @property int $avatar + * @property int $score + * @property int $permission + * @property string $ip + * @property string $last_sign_at + * @property string $register_at + * @property bool $verified + * @property string $player_name + * @property Collection $players + * @property Collection $closet */ class User extends Authenticatable implements JWTSubject { diff --git a/resources/assets/src/scripts/types.ts b/resources/assets/src/scripts/types.ts index f4fb89b6..c9603f2f 100644 --- a/resources/assets/src/scripts/types.ts +++ b/resources/assets/src/scripts/types.ts @@ -2,6 +2,7 @@ export type User = { uid: number email: string nickname: string + user: string | null score: number avatar: number permission: UserPermission