api code global jain
This commit is contained in:
40
app/Mail/UserConfirmEmail.php
Normal file
40
app/Mail/UserConfirmEmail.php
Normal file
@@ -0,0 +1,40 @@
|
||||
<?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,
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user