Skip to content

Commit ac462be

Browse files
committed
augment docs
1 parent d605069 commit ac462be

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

verification.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Email Verification
22

33
- [Introduction](#introduction)
4+
- [Model Preparation](#model-preparation)
45
- [Database Considerations](#verification-database)
56
- [Routing](#verification-routing)
67
- [Protecting Routes](#protecting-routes)
@@ -13,7 +14,8 @@
1314

1415
Many web applications require users to verify their email addresses before using the application. Rather than forcing you to re-implement this on each application, Laravel provides convenient methods for sending and verifying email verification requests.
1516

16-
### Model Preparation
17+
<a name="model-preparation">
18+
## Model Preparation
1719

1820
To get started, verify that your `App\User` model implements the `Illuminate\Contracts\Auth\MustVerifyEmail` contract:
1921

@@ -32,8 +34,10 @@ To get started, verify that your `App\User` model implements the `Illuminate\Con
3234
// ...
3335
}
3436

37+
Once this interface has been added to your model, newly registered users will automatically be sent an email containing an email verification link. As you can see by examining your `EventServiceProvider`, Laravel already contains a `SendEmailVerificationNotification` listener that is attached to the `Illuminate\Auth\Events\Registered` event.
38+
3539
<a name="verification-database"></a>
36-
## Database Considerations
40+
### Database Considerations
3741

3842
#### The Email Verification Column
3943

0 commit comments

Comments
 (0)