'datetime', ]; /** * Send the password reset notification. * * @param string $token * @return void */ public function sendPasswordResetNotification($token) { $this->notify(new ResetPassword($token)); Log::info('Password reset token sent'); } /** * set Email attribute * @param string $value */ public function setEmailAttribute($value) { $this->attributes['email'] = strtolower($value); } /** * Sends a credential recovery email to the user. * * @param string $token * * @return void */ public function sendCredentialRecoveryNotification(string $token): void { $accountRecoveryNotification = new AccountRecoveryNotification($token); $accountRecoveryNotification->toMailUsing(null); $accountRecoveryNotification->createUrlUsing(function($notifiable, $token) { $url = url( route( 'webauthn.recover', [ 'token' => $token, 'email' => $notifiable->getEmailForPasswordReset(), ], false ) ); return $url; }); $this->notify($accountRecoveryNotification); } }