Skip to content

Instantly share code, notes, and snippets.

@whitneyburton
Created January 17, 2020 23:46
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 whitneyburton/828e5a9fc0de77ccf21ccb8b8983da5a to your computer and use it in GitHub Desktop.
Save whitneyburton/828e5a9fc0de77ccf21ccb8b8983da5a to your computer and use it in GitHub Desktop.
// app\Mail\SendMailable.php
<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
class SendMailable extends Mailable
{
use Queueable, SerializesModels;
public $name;
/**
* Create a new message instance.
*
* @return void
*/
public function __construct($name)
{
$this->name = $name;
}
/**
* Build the message.
*
* @return $this
*/
public function build()
{
return $this->view('emails.hook');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment