41 lines
849 B
PHP
41 lines
849 B
PHP
<?php
|
|
|
|
namespace App\Mail;
|
|
|
|
use Illuminate\Bus\Queueable;
|
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
|
use Illuminate\Mail\Mailable;
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
class UserConfirmEmail extends Mailable
|
|
{
|
|
use Queueable, SerializesModels;
|
|
|
|
protected $user;
|
|
protected $otp;
|
|
|
|
/**
|
|
* UserConfirmEmail constructor.
|
|
* @param $user
|
|
* @param $otp
|
|
*/
|
|
public function __construct($user,$otp)
|
|
{
|
|
$this->user = $user;
|
|
$this->otp = $otp;
|
|
$this->subject = trans('email.email_subject_label.otp_email_verification');
|
|
}
|
|
|
|
/**
|
|
* @return UserConfirmEmail
|
|
*/
|
|
public function build()
|
|
{
|
|
return $this->view('frontend.mail.account-activation')
|
|
->with([
|
|
'user' => $this->user,
|
|
'otp' => $this->otp,
|
|
]);
|
|
}
|
|
}
|