mirror of
https://github.com/dyzulk/trustlab-api.git
synced 2026-01-27 05:41:55 +07:00
56 lines
1.1 KiB
PHP
56 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace App\Mail;
|
|
|
|
use App\Models\Inquiry;
|
|
use Illuminate\Bus\Queueable;
|
|
use Illuminate\Mail\Mailable;
|
|
use Illuminate\Mail\Mailables\Content;
|
|
use Illuminate\Mail\Mailables\Envelope;
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
class InquiryReplyMail extends Mailable
|
|
{
|
|
use Queueable, SerializesModels;
|
|
|
|
public $inquiry;
|
|
public $replyMessage;
|
|
|
|
/**
|
|
* Create a new message instance.
|
|
*/
|
|
public function __construct(Inquiry $inquiry, $replyMessage)
|
|
{
|
|
$this->inquiry = $inquiry;
|
|
$this->replyMessage = $replyMessage;
|
|
}
|
|
|
|
/**
|
|
* Get the message envelope.
|
|
*/
|
|
public function envelope(): Envelope
|
|
{
|
|
return new Envelope(
|
|
subject: 'Re: ' . $this->inquiry->subject,
|
|
);
|
|
}
|
|
|
|
/**
|
|
* Get the message content definition.
|
|
*/
|
|
public function content(): Content
|
|
{
|
|
return new Content(
|
|
view: 'emails.inquiry_reply',
|
|
);
|
|
}
|
|
|
|
/**
|
|
* Get the attachments for the message.
|
|
*/
|
|
public function attachments(): array
|
|
{
|
|
return [];
|
|
}
|
|
}
|