43 lines
No EOL
1.1 KiB
PHP
43 lines
No EOL
1.1 KiB
PHP
<?php
|
|
namespace App\Mail;
|
|
|
|
use App\User;
|
|
use Illuminate\Bus\Queueable;
|
|
use Illuminate\Mail\Mailable;
|
|
use Illuminate\Queue\SerializesModels;
|
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
|
|
|
class MailOTPCustomer extends Mailable
|
|
{
|
|
use Queueable, SerializesModels;
|
|
|
|
protected $otp;
|
|
protected $email;
|
|
public $subject;
|
|
|
|
|
|
public function __construct($otp, $email)
|
|
{
|
|
$this->otp = $otp;
|
|
$this->email = $email;
|
|
$this->subject = __('portal.mail_subject');
|
|
}
|
|
|
|
|
|
public function build()
|
|
{
|
|
|
|
return $this->view('emails.auth')->with([
|
|
'otp' => $this->otp,
|
|
'url' => route('portal.login.otp.form', ['email' => $this->email, 'otp' => $this->otp]),
|
|
'button' => __('portal.login_button'),
|
|
'salutation' => __('portal.mail_hello'),
|
|
'copy1line' => __('portal.mail_otp'),
|
|
'copy2line' => __('portal.mail_otp_valid'),
|
|
'copy3line' => __('portal.mail_otp_not_requested'),
|
|
'greetings' => __('portal.mail_greetings'),
|
|
'sender' => __('portal.mail_sender'),
|
|
|
|
]);
|
|
}
|
|
} |