Created
January 18, 2019 08:05
-
-
Save amir9480/2c306785978bf85e02dbc878999a6e38 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
<?php | |
namespace App\Mail; | |
use App\Message; | |
use Illuminate\Bus\Queueable; | |
use Illuminate\Mail\Mailable; | |
use Illuminate\Queue\SerializesModels; | |
use Illuminate\Contracts\Queue\ShouldQueue; | |
class Contact extends Mailable | |
{ | |
use Queueable, SerializesModels; | |
/** | |
* @var \App\Message | |
*/ | |
protected $message = null; | |
/** | |
* Create a new message instance. | |
* | |
* @return void | |
*/ | |
public function __construct(Message $message) | |
{ | |
$this->message = $message; | |
} | |
/** | |
* Build the message. | |
* | |
* @return $this | |
*/ | |
public function build() | |
{ | |
return $this->markdown('emails.contact', $this->message->toArray()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment