37 lines
745 B
PHP
37 lines
745 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Invoice\Mails;
|
||
|
|
||
|
use App\Invoice\Models\Invoice;
|
||
|
use Illuminate\Bus\Queueable;
|
||
|
use Illuminate\Mail\Mailable;
|
||
|
use Illuminate\Queue\SerializesModels;
|
||
|
|
||
|
class RememberMail extends Mailable
|
||
|
{
|
||
|
use Queueable;
|
||
|
use SerializesModels;
|
||
|
|
||
|
/**
|
||
|
* Create a new message instance.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function __construct(public Invoice $invoice, public string $filename)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Build the message.
|
||
|
*
|
||
|
* @return $this
|
||
|
*/
|
||
|
public function build()
|
||
|
{
|
||
|
return $this->markdown('mail.invoice.remember')
|
||
|
->attach($this->filename)
|
||
|
->replyTo('kasse@stamm-silva.de')
|
||
|
->subject('Zahlungserinnerung | DPSG Stamm Silva');
|
||
|
}
|
||
|
}
|