*/ use HasApiTokens, HasFactory, Notifiable, TwoFactorAuthenticatable; /** * Get the attributes that should be cast. * * @return array */ protected function casts(): array { return [ 'email_verified_at' => 'datetime', 'password' => 'hashed', ]; } public function chats(): HasMany { return $this->hasMany(Chat::class); } }