Skip to content

Instantly share code, notes, and snippets.

@jadulled
Forked from petehouston/mail.php
Last active August 29, 2015 14:23
Show Gist options
  • Save jadulled/5ec968dbf85fb404f355 to your computer and use it in GitHub Desktop.
Save jadulled/5ec968dbf85fb404f355 to your computer and use it in GitHub Desktop.
public function sendUserRegistered($user)
{
$view = 'user_registered';
$data = [
'email' => $user->email,
'name' => $user->name,
'token' => $user->verification->token
];
$this->mail->queue($view, $data , function($message) use ($data)
{
$message->to($user->email, $user->name)->subject('Welcome to the Brotherhood');
});
}
<p> Welcome, {{ $name }} </p>
<p> Hope you like to Brotherhood in Laravel. </p>
<p> Best Regards </p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment