mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 11:41:09 -04:00
* Create PHP CS Fixer config and add to CI workflow * Run php cs fixer on project * Add newline at end of file * Update to use PHP CS Fixer v3 * Run v3 config on project * Run seperate config in CI
42 lines
744 B
PHP
42 lines
744 B
PHP
<?php
|
|
|
|
namespace Crater\Mail;
|
|
|
|
use Illuminate\Bus\Queueable;
|
|
use Illuminate\Mail\Mailable;
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
class TestMail extends Mailable
|
|
{
|
|
use Queueable;
|
|
use 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,
|
|
]);
|
|
}
|
|
}
|