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