Skip to content

Commit

Permalink
Add email verified event
Browse files Browse the repository at this point in the history
  • Loading branch information
hirenkeraliya committed Nov 2, 2018
1 parent 8f135d3 commit bc3c1cd
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions verification.md
Expand Up @@ -6,6 +6,7 @@
- [Protecting Routes](#protecting-routes)
- [Views](#verification-views)
- [After Verifying Emails](#after-verifying-emails)
- [Events](#events)

<a name="introduction"></a>
## Introduction
Expand Down Expand Up @@ -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';


<a name="events"></a>
## 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',
],
];

0 comments on commit bc3c1cd

Please sign in to comment.