From bc3c1cd2564709e0f0aac6262ef8b17e848b7a6f Mon Sep 17 00:00:00 2001 From: Hiren Keraliya Date: Fri, 2 Nov 2018 12:11:36 +0530 Subject: [PATCH] Add email verified event --- verification.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/verification.md b/verification.md index 263d27e6..89ee9d27 100644 --- a/verification.md +++ b/verification.md @@ -6,6 +6,7 @@ - [Protecting Routes](#protecting-routes) - [Views](#verification-views) - [After Verifying Emails](#after-verifying-emails) +- [Events](#events) ## Introduction @@ -67,3 +68,21 @@ Laravel will generate all of the necessary email verification views when the `ma After an email address is verified, the user will automatically be redirected to `/home`. You can customize the post verification redirect location by defining a `redirectTo` method or property on the `VerificationController`: protected $redirectTo = '/dashboard'; + + + +## Events + +Laravel gives [events](/docs/{{version}}/events) during the email verification process. You may attach listeners to these events in your `EventServiceProvider`: + + /** + * The event listener mappings for the application. + * + * @var array + */ + protected $listen = [ + 'Illuminate\Auth\Events\Verified' => [ + 'App\Listeners\LogVerifiedUser', + ], + ]; +