Search code examples
laravelemailverification

How to manually resend email verification in Laravel?


I have an admin page on my site and I want an option to be able to manually resend an email verification, there are two purposes for this:

  1. Test email verifications templates.
  2. Debug user issues.

Does the user model have a method to do this?


Solution

  • If your User model implements the MustVerifyEmail interface, yes, you can manually send the notification using:

    $user->sendEmailVerificationNotification();