Skip to content

Commit 48ec792

Browse files
committed
Fix wrong parameter given to the to() method
1 parent 5545743 commit 48ec792

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/UserVerification.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ protected function emailVerificationLink(
196196
)
197197
{
198198
return $this->mailer
199-
->to($user->email)
199+
->to($user)
200200
->send(new VerificationTokenGenerated($user, $subject, $from, $name));
201201
}
202202

@@ -217,7 +217,7 @@ protected function emailQueueVerificationLink(
217217
)
218218
{
219219
return $this->mailer
220-
->to($user->email)
220+
->to($user)
221221
->queue(new VerificationTokenGenerated($user, $subject, $from, $name));
222222
}
223223

@@ -240,7 +240,7 @@ protected function emailLaterVerificationLink(
240240
)
241241
{
242242
return $this->mailer
243-
->to($user->email)
243+
->to($user)
244244
->later($delay, new VerificationTokenGenerated($user, $subject, $from, $name));
245245
}
246246

0 commit comments

Comments
 (0)