*/ use HasFactory, Notifiable; /** * Get the attributes that should be cast. * * @return array */ protected function casts(): array { return [ 'email_verified_at' => 'datetime', 'password' => 'hashed', ]; } /** * Get the character for this user. */ public function character(): HasOne { return $this->hasOne(Character::class); } /** * Get all characters for this user (for future multi-character support). */ public function characters(): HasMany { return $this->hasMany(Character::class); } /** * Get the notifications for this user. */ public function notifications(): HasMany { return $this->hasMany(Notification::class)->orderBy('created_at', 'desc'); } }