Skip to content

Commit 1ae07b0

Browse files
Warn about automatically registered event on the upgrade guide (laravel#10009)
* Update upgrade.md * Update upgrade.md * Update upgrade.md --------- Co-authored-by: Taylor Otwell <[email protected]>
1 parent 88b6f0d commit 1ae07b0

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

upgrade.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,20 @@ if ($e instanceof AuthenticationException) {
182182
}
183183
```
184184

185+
<a name="email-verification-notification-on-registration"></a>
186+
#### Email Verification Notification on Registration
187+
188+
**Likelihood Of Impact: Very Low**
189+
190+
The `SendEmailVerificationNotification` listener is now automatically registered for the `Registered` event if it is not already registered by your application's `EventServiceProvider`. If your application's `EventServiceProvider` does not register this listener and you do not want Laravel to automatically register it for you, you should define an empty `configureEmailVerification` method in your application's `EventServiceProvider`:
191+
192+
```php
193+
protected function configureEmailVerification()
194+
{
195+
// ...
196+
}
197+
```
198+
185199
<a name="cache"></a>
186200
### Cache
187201

0 commit comments

Comments
 (0)