2

I'm trying to use Laravel 5.7's new email verification feature. Let's say I'm logged in as Admin inside the admin panel and I want to:

  1. Create a random user via admin panel.
  2. Send an email verification to that created user's email.

How can I accomplish this with the new Laravel 5.7 email verification feature?

Karl Hill
  • 12,937
  • 5
  • 58
  • 95
rook99
  • 1,034
  • 10
  • 34

1 Answers1

4

The built in verification scaffolding provides a notification to do this. You just need to ensure that the user's verified_at is set to null and then

use Iluminate\Auth\Notifications\VerifyEmail;

$user->notify(new VerifyEmail);

This will resend a new email with a signed URL.

Joe
  • 4,618
  • 3
  • 28
  • 35