You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Laravel supports verifying email addresses out of the box. This package adds support for verifying *new* email addresses. When a user updates its email address, it won't replace the old one until the new one is verified. Super easy to set up, still fully customizable. If you want it can be used as a drop-in replacement for the built-in Email Verification features as this package supports unauthenticated verification and auto-login. Support for Laravel 6.0 and higher and requires PHP 7.3 or higher.
9
10
10
11
## Blogpost
11
12
12
-
If you want to know more about the background of this package, please read [the blogpost](https://protone.media/en/blog/an-add-on-to-laravels-built-in-email-verification-only-update-a-users-email-address-if-the-new-one-is-verified-as-well).
13
+
If you want to know more about the background of this package, please read [the blog post](https://protone.media/en/blog/an-add-on-to-laravels-built-in-email-verification-only-update-a-users-email-address-if-the-new-one-is-verified-as-well).
The `newEmail` method doesn't update the user, its current email address stays current until the new one if verified. It stores a token (associated to the user and new email address) in the `pending_user_emails` table. Once the user verifies the email address by clicking the link in the mail, the user model will be updated and the token will be removed from the `pending_user_emails` table.
75
+
The `newEmail` method doesn't update the user, its current email address stays current until the new one if verified. It stores a token (associated with the user and new email address) in the `pending_user_emails` table. Once the user verifies the email address by clicking the link in the mail, the user model will be updated and the token will be removed from the `pending_user_emails` table.
75
76
76
-
The `resendPendingEmailVerificationMail` does exactly the same, it just grabs the new email address from the previous attempt.
77
+
The `resendPendingEmailVerificationMail` does the same, it just grabs the new email address from the previous attempt.
77
78
78
79
### Login after verification
79
80
80
-
The user that verified its email address will be logged in automatically. You can disable this by chaning the `login_after_verification` configuration setting to `false`.
81
+
The user that verified its email address will be logged in automatically. You can disable this by changing the `login_after_verification` configuration setting to `false`.
81
82
82
83
### Overriding the default Laravel Email Verification
83
84
@@ -106,7 +107,7 @@ class User extends Authenticatable implements MustVerifyEmail
106
107
107
108
### Customization
108
109
109
-
You can change the content of the verification mail by editing the published views which can be found in the `resources/views/vendor/verify-new-email` folder. The `verifyNewEmail.blade.php` view will be sent when verifying *updated* email addresses. The `verifyFirstEmail.blade.php` view will be sent when a User verifies its initial email address for the first time (after registering). Alternatively you set your own custom Mailables classes in the config file:
110
+
You can change the content of the verification mail by editing the published views which can be found in the `resources/views/vendor/verify-new-email` folder. The `verifyNewEmail.blade.php` view will be sent when verifying *updated* email addresses. The `verifyFirstEmail.blade.php` view will be sent when a User verifies its initial email address for the first time (after registering). Alternatively, you set your own custom Mailables classes in the config file:
110
111
111
112
```php
112
113
<?php
@@ -165,7 +166,7 @@ composer test
165
166
166
167
### Changelog
167
168
168
-
Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.
169
+
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
169
170
170
171
## Contributing
171
172
@@ -177,16 +178,16 @@ Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
177
178
*[`Laravel Blade On Demand`](https://github.com/protonemedia/laravel-blade-on-demand): Laravel package to compile Blade templates in memory.
178
179
*[`Laravel Cross Eloquent Search`](https://github.com/protonemedia/laravel-cross-eloquent-search): Laravel package to search through multiple Eloquent models.
179
180
*[`Laravel Eloquent Scope as Select`](https://github.com/protonemedia/laravel-eloquent-scope-as-select): Stop duplicating your Eloquent query scopes and constraints in PHP. This package lets you re-use your query scopes and constraints by adding them as a subquery.
180
-
*[`Laravel Eloquent Where Not`](https://github.com/protonemedia/laravel-eloquent-where-not): This Laravel package allows you to flip/invert an Eloquent scope, or really any query constraint.
181
-
*[`Laravel FFMpeg`](https://github.com/protonemedia/laravel-ffmpeg): This package provides an integration with FFmpeg for Laravel. The storage of the files is handled by Laravel's Filesystem.
181
+
*[`Laravel Eloquent Where Not`](https://github.com/protonemedia/laravel-eloquent-where-not): This Laravel package allows you to flip/invert an Eloquent scope, or any query constraint.
182
+
*[`Laravel FFMpeg`](https://github.com/protonemedia/laravel-ffmpeg): This package provides integration with FFmpeg for Laravel. The storage of the files is handled by Laravel's Filesystem.
182
183
*[`Laravel Form Components`](https://github.com/protonemedia/laravel-form-components): Blade components to rapidly build forms with Tailwind CSS Custom Forms and Bootstrap 4. Supports validation, model binding, default values, translations, includes default vendor styling and fully customizable!
183
184
*[`Laravel Mixins`](https://github.com/protonemedia/laravel-mixins): A collection of Laravel goodies.
184
185
*[`Laravel Paddle`](https://github.com/protonemedia/laravel-paddle): Paddle.com API integration for Laravel with support for webhooks/events.
185
186
*[`Laravel WebDAV`](https://github.com/protonemedia/laravel-webdav): WebDAV driver for Laravel's Filesystem.
186
187
187
188
### Security
188
189
189
-
If you discover any securityrelated issues, please email [email protected] instead of using the issue tracker.
190
+
If you discover any security-related issues, please email [email protected] instead of using the issue tracker.
0 commit comments