*/ use HasFactory, Notifiable, PasskeyAuthenticatable, TwoFactorAuthenticatable; /** * A mail server that refuses or fails (unknown mailbox, mistyped address, * server down) must not turn a completed registration into an HTTP 500. * The account exists; the failure is reported and the investor can ask * for the email again from the verification page, which uses this path. */ public function sendEmailVerificationNotification(): void { try { parent::sendEmailVerificationNotification(); } catch (TransportExceptionInterface $error) { report($error); } } /** * Get the attributes that should be cast. * * @return array */ protected function casts(): array { return [ 'email_verified_at' => 'datetime', 'password' => 'hashed', /* @chisel-2fa */ 'two_factor_confirmed_at' => 'datetime', /* @end-chisel-2fa */ ]; } }