| @@ 11-45 (lines=35) @@ | ||
| 8 | use Illuminate\Queue\SerializesModels; |
|
| 9 | use Illuminate\Contracts\Queue\ShouldQueue; |
|
| 10 | ||
| 11 | class ResetPassword extends Mailable implements ShouldQueue |
|
| 12 | { |
|
| 13 | use Queueable, SerializesModels; |
|
| 14 | ||
| 15 | /** @var \App\Services\Auth\Back\User */ |
|
| 16 | public $user; |
|
| 17 | ||
| 18 | /** @var string */ |
|
| 19 | public $token; |
|
| 20 | ||
| 21 | /** |
|
| 22 | * Create a new message instance. |
|
| 23 | * |
|
| 24 | * @param \App\Services\Auth\Back\User $user |
|
| 25 | * @param string $token |
|
| 26 | */ |
|
| 27 | public function __construct(User $user, string $token) |
|
| 28 | { |
|
| 29 | $this->user = $user; |
|
| 30 | ||
| 31 | $this->token = $token; |
|
| 32 | } |
|
| 33 | ||
| 34 | /** |
|
| 35 | * Build the message. |
|
| 36 | * |
|
| 37 | * @return $this |
|
| 38 | */ |
|
| 39 | public function build() |
|
| 40 | { |
|
| 41 | return $this |
|
| 42 | ->subject('Toegang tot '.config('app.url')) |
|
| 43 | ->view('mails.auth.back.resetPassword'); |
|
| 44 | } |
|
| 45 | } |
|
| 46 | ||
| @@ 11-39 (lines=29) @@ | ||
| 8 | use Illuminate\Queue\SerializesModels; |
|
| 9 | use Illuminate\Contracts\Queue\ShouldQueue; |
|
| 10 | ||
| 11 | class Welcome extends Mailable implements ShouldQueue |
|
| 12 | { |
|
| 13 | use Queueable, SerializesModels; |
|
| 14 | ||
| 15 | /** @var \App\Services\Auth\Front\User */ |
|
| 16 | public $user; |
|
| 17 | ||
| 18 | /** |
|
| 19 | * Create a new message instance. |
|
| 20 | */ |
|
| 21 | public function __construct(User $user) |
|
| 22 | { |
|
| 23 | $this->user = $user; |
|
| 24 | } |
|
| 25 | ||
| 26 | /** |
|
| 27 | * Build the message. |
|
| 28 | * |
|
| 29 | * @return $this |
|
| 30 | */ |
|
| 31 | public function build() |
|
| 32 | { |
|
| 33 | return $this |
|
| 34 | ->to($this->user->email) |
|
| 35 | ->subject('Welkom bij'.config('app.url')) |
|
| 36 | ->view('mails.auth.front.welcome'); |
|
| 37 | } |
|
| 38 | } |
|
| 39 | ||
| @@ 11-42 (lines=32) @@ | ||
| 8 | use Illuminate\Queue\SerializesModels; |
|
| 9 | use Illuminate\Contracts\Queue\ShouldQueue; |
|
| 10 | ||
| 11 | class ResetPassword extends Mailable implements ShouldQueue |
|
| 12 | { |
|
| 13 | use Queueable, SerializesModels; |
|
| 14 | ||
| 15 | /** @var \App\Services\Auth\Back\User */ |
|
| 16 | public $user; |
|
| 17 | ||
| 18 | /** @var string */ |
|
| 19 | public $token; |
|
| 20 | ||
| 21 | /** |
|
| 22 | * Create a new message instance. |
|
| 23 | */ |
|
| 24 | public function __construct(User $user, string $token) |
|
| 25 | { |
|
| 26 | $this->user = $user; |
|
| 27 | ||
| 28 | $this->token = $token; |
|
| 29 | } |
|
| 30 | ||
| 31 | /** |
|
| 32 | * Build the message. |
|
| 33 | * |
|
| 34 | * @return $this |
|
| 35 | */ |
|
| 36 | public function build() |
|
| 37 | { |
|
| 38 | return $this |
|
| 39 | ->subject('Toegang tot '.config('app.url')) |
|
| 40 | ->view('mails.auth.front.resetPassword'); |
|
| 41 | } |
|
| 42 | } |
|
| 43 | ||