Preview: InquiryNotification.php
Size: 1.07 KB
/home/getspomw/itechservicellc.com/app/Mail/InquiryNotification.php
<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Mail\Mailables\Content;
use Illuminate\Mail\Mailables\Envelope;
use Illuminate\Queue\SerializesModels;
use App\Models\CustomerInquiry;
class InquiryNotification extends Mailable
{
use Queueable, SerializesModels;
public $inquiry;
/**
* Create a new message instance.
*/
public function __construct(CustomerInquiry $inquiry)
{
$this->inquiry = $inquiry;
}
/**
* Get the message envelope.
*/
public function envelope(): Envelope
{
return new Envelope(
subject: 'New Customer Inquiry'
);
}
/**
* Get the message content definition.
*/
public function content(): Content
{
return new Content(
markdown: 'emails.inquiry',
with: [
'inquiry' => $this->inquiry,
]
);
}
/**
* Get the attachments for the message.
*/
public function attachments(): array
{
return [];
}
}
Directory Contents
Dirs: 0 × Files: 5