Files
Global-Jain/app/Mail/UserConfirmEmail.php

41 lines
849 B
PHP
Raw Permalink Normal View History

2025-11-05 10:37:10 +05:30
<?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,
]);
}
}