Skip to content

Instantly share code, notes, and snippets.

@introwit
Last active October 11, 2016 16:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save introwit/5e4aa6c1b4ee18aeac9112454fba0cb9 to your computer and use it in GitHub Desktop.
Save introwit/5e4aa6c1b4ee18aeac9112454fba0cb9 to your computer and use it in GitHub Desktop.
Email verification blog - gist 3
<?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 EmailVerification extends Mailable
{
use Queueable, SerializesModels;
public $user;
/**
* Create a new message instance.
*
* @return void
*/
public function __construct(User $user)
{
$this->user = $user;
}
/**
* Build the message.
*
* @return $this
*/
public function build()
{
return $this->view('emails.verification');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment