-
-
Save whitneyburton/828e5a9fc0de77ccf21ccb8b8983da5a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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