*/ use HasFactory, Notifiable, TwoFactorAuthenticatable; /** * Get the attributes that should be cast. * * @return array */ public function sendEmailVerificationNotification(): void { $this->notify(new QueuedVerifyEmail); } public function sendPasswordResetNotification($token): void { $this->notify(new QueuedResetPassword($token)); } protected function casts(): array { return [ 'email_verified_at' => 'datetime', 'password' => 'hashed', 'is_admin' => 'boolean', ]; } }