ldc-gen-game-web/app/Mail/VerifyEmail.php

47 lines
1.1 KiB
PHP
Raw Permalink Normal View History

2020-10-29 15:40:23 +01:00
<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
use LDC\LDCCRM\Models\Customer;
2020-10-29 15:40:23 +01:00
class VerifyEmail extends Mailable implements ShouldQueue
2020-10-29 15:40:23 +01:00
{
2021-08-18 17:08:02 +02:00
use Queueable;
use SerializesModels;
2020-10-29 15:40:23 +01:00
/** @var \LDC\LDCCRM\Models\Customer $customer */
2022-03-15 16:27:41 +01:00
protected $customer;
/** @var string $emailCheckToken */
protected $emailCheckToken;
2020-10-29 15:40:23 +01:00
/**
* Create a new message instance.
*
2022-03-15 16:27:41 +01:00
* @param Customer $customer
* @param string $emailCheckToken
2020-10-29 15:40:23 +01:00
*/
public function __construct(Customer $customer, string $emailCheckToken)
2020-10-29 15:40:23 +01:00
{
$this->customer = $customer;
$this->emailCheckToken = $emailCheckToken;
2020-10-29 15:40:23 +01:00
}
/**
* Build the message.
*
* @return $this
*/
2021-08-18 17:08:02 +02:00
public function build()
{
2022-03-15 16:27:41 +01:00
return $this->subject("Activation du compte")
->view('front.basic.verifyemail')
->with('customer', $this->customer)
->with('emailCheckToken', $this->emailCheckToken);
2020-10-29 15:40:23 +01:00
}
}