Skip to content

Instantly share code, notes, and snippets.

@akmalhazim
Created April 2, 2019 10:59
Show Gist options
  • Save akmalhazim/45812e59bc01f708b7e0fecc749c1b4e to your computer and use it in GitHub Desktop.
Save akmalhazim/45812e59bc01f708b7e0fecc749c1b4e to your computer and use it in GitHub Desktop.
<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Contracts\Queue\ShouldQueue;
class SendUserVerificationEmail extends Mailable implements ShouldQueue
{
use Queueable, SerializesModels;
/**
* Create a new message instance.
*
* @return void
*/
public $slot;
public function __construct($slot)
{
$this->slot = $slot;
}
/**
* Build the message.
*
* @return $this
*/
public function build()
{
return $this->markdown('mail.users.verify')->subject('ProjekIOT @ Email Verification')->with(['slot' => $this->slot]);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment