Skip to content

Commit 31c604b

Browse files
author
Pascal Baljet
committed
Mail subject + README.md
1 parent d350c50 commit 31c604b

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77

88
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. Requires Laravel 6.0 and PHP 7.2 or higher.
99

10+
## Blogpost
11+
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+
1014
## Installation
1115

1216
You can install the package via composer:

src/Mail/VerifyFirstEmail.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ public function __construct(PendingUserEmail $pendingUserEmail)
3434
*/
3535
public function build()
3636
{
37+
$this->subject(__('Verify Email Address'));
38+
3739
return $this->markdown('verify-new-email::verifyFirstEmail', [
3840
'url' => $this->pendingUserEmail->verificationUrl(),
3941
]);

src/Mail/VerifyNewEmail.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ public function __construct(PendingUserEmail $pendingUserEmail)
3434
*/
3535
public function build()
3636
{
37+
$this->subject(__('Verify Email Address'));
38+
3739
return $this->markdown('verify-new-email::verifyNewEmail', [
3840
'url' => $this->pendingUserEmail->verificationUrl(),
3941
]);

0 commit comments

Comments
 (0)