*/ use HasFactory, Notifiable, TwoFactorAuthenticatable; /** * The confirmation mail, in this product's design rather than Laravel's. * * Overridden instead of going through VerifyEmail::toMailUsing(), which * hands back a MailMessage — the framework's markdown layout, with its * own logo, its own button and its own footer. This is the first thing * anybody ever receives from CluPilot; it should not arrive looking like a * framework's default. * * It also has to go out through the SYSTEM mailbox like every other * account mail (App\Services\Mail\MailPurpose), which the notification * path does not do on its own. */ public function sendEmailVerificationNotification(): void { Mail::to($this->getEmailForVerification())->queue(new VerifyEmailMail($this)); } /** * Get the attributes that should be cast. * * @return array */ protected function casts(): array { return [ 'email_verified_at' => 'datetime', 'password' => 'hashed', // is_admin itself is dead: nothing reads it any more (see // Operator/the operator guard). The column stays because dropping // it is a schema change this task does not need to make. ]; } }