Initial commit
This commit is contained in:
41
app/Mail/DealerTopUpOtp.php
Normal file
41
app/Mail/DealerTopUpOtp.php
Normal file
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
namespace App\Mail;
|
||||
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Mail\Mailable;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class UserRegistration extends Mailable
|
||||
{
|
||||
use Queueable, SerializesModels;
|
||||
|
||||
/**
|
||||
* Create a new message instance.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct($orgUser, $otp)
|
||||
{
|
||||
$this->orgUser = $orgUser;
|
||||
$this->otp = $otp;
|
||||
}
|
||||
|
||||
/**
|
||||
* Build the message.
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function build()
|
||||
{
|
||||
// $orgUser = $this->orgUser;
|
||||
|
||||
// return $this->view('view.name');
|
||||
return $this->from('your_email@example.com')
|
||||
->subject('Airtime Sales Portal OTP Code')
|
||||
->view('emails.dealer_topup_otp')
|
||||
->with('details', $this->orgUser)
|
||||
->with('otp', $this->otp);
|
||||
}
|
||||
}
|
||||
37
app/Mail/UserRegistration.php
Normal file
37
app/Mail/UserRegistration.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
namespace App\Mail;
|
||||
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Mail\Mailable;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class UserRegistration extends Mailable
|
||||
{
|
||||
use Queueable, SerializesModels;
|
||||
|
||||
/**
|
||||
* Create a new message instance.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct($newUser)
|
||||
{
|
||||
$this->newUser = $newUser;
|
||||
}
|
||||
|
||||
/**
|
||||
* Build the message.
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function build()
|
||||
{
|
||||
// return $this->view('view.name');
|
||||
return $this->from('your_email@example.com')
|
||||
->subject('Welcome to Airtime Sales Portal')
|
||||
->view('emails.newuser')
|
||||
->with('details', $this->newUser);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user