@@ 11-41 (lines=31) @@ | ||
8 | use Illuminate\Queue\SerializesModels; |
|
9 | use ProtoneMedia\LaravelVerifyNewEmail\PendingUserEmail; |
|
10 | ||
11 | class VerifyFirstEmail extends Mailable implements ShouldQueue |
|
12 | { |
|
13 | use Queueable, SerializesModels; |
|
14 | ||
15 | /** |
|
16 | * @var \ProtoneMedia\LaravelVerifyNewEmail\PendingUserEmail |
|
17 | */ |
|
18 | public $pendingUserEmail; |
|
19 | ||
20 | /** |
|
21 | * Create a new message instance. |
|
22 | * |
|
23 | * @return void |
|
24 | */ |
|
25 | public function __construct(PendingUserEmail $pendingUserEmail) |
|
26 | { |
|
27 | $this->pendingUserEmail = $pendingUserEmail; |
|
28 | } |
|
29 | ||
30 | /** |
|
31 | * Build the message. |
|
32 | * |
|
33 | * @return $this |
|
34 | */ |
|
35 | public function build() |
|
36 | { |
|
37 | return $this->markdown('verify-new-email::verifyNewEmail', [ |
|
38 | 'url' => $this->pendingUserEmail->verificationUrl(), |
|
39 | ]); |
|
40 | } |
|
41 | } |
|
42 |
@@ 11-41 (lines=31) @@ | ||
8 | use Illuminate\Queue\SerializesModels; |
|
9 | use ProtoneMedia\LaravelVerifyNewEmail\PendingUserEmail; |
|
10 | ||
11 | class VerifyNewEmail extends Mailable implements ShouldQueue |
|
12 | { |
|
13 | use Queueable, SerializesModels; |
|
14 | ||
15 | /** |
|
16 | * @var \ProtoneMedia\LaravelVerifyNewEmail\PendingUserEmail |
|
17 | */ |
|
18 | public $pendingUserEmail; |
|
19 | ||
20 | /** |
|
21 | * Create a new message instance. |
|
22 | * |
|
23 | * @return void |
|
24 | */ |
|
25 | public function __construct(PendingUserEmail $pendingUserEmail) |
|
26 | { |
|
27 | $this->pendingUserEmail = $pendingUserEmail; |
|
28 | } |
|
29 | ||
30 | /** |
|
31 | * Build the message. |
|
32 | * |
|
33 | * @return $this |
|
34 | */ |
|
35 | public function build() |
|
36 | { |
|
37 | return $this->markdown('verify-new-email::verifyNewEmail', [ |
|
38 | 'url' => $this->pendingUserEmail->verificationUrl(), |
|
39 | ]); |
|
40 | } |
|
41 | } |
|
42 |