mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 11:41:09 -04:00
39 lines
776 B
PHP
39 lines
776 B
PHP
<?php
|
|
namespace Crater\Mail;
|
|
|
|
use Illuminate\Bus\Queueable;
|
|
use Illuminate\Mail\Mailable;
|
|
use Illuminate\Queue\SerializesModels;
|
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
|
|
|
class TestMail extends Mailable
|
|
{
|
|
use Queueable, SerializesModels;
|
|
public $subject;
|
|
public $message;
|
|
|
|
/**
|
|
* Create a new message instance.
|
|
*
|
|
* @param $subject
|
|
* @param $message
|
|
*/
|
|
public function __construct($subject, $message)
|
|
{
|
|
$this->subject = $subject;
|
|
$this->message = $message;
|
|
}
|
|
|
|
/**
|
|
* Build the message.
|
|
*
|
|
* @return $this
|
|
*/
|
|
public function build()
|
|
{
|
|
return $this->subject($this->subject)->markdown('emails.test')->with([
|
|
'my_message' => $this->message
|
|
]);
|
|
}
|
|
}
|