first
This commit is contained in:
36
app/Mail/KtmCreatedApplicantMail.php
Normal file
36
app/Mail/KtmCreatedApplicantMail.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace App\Mail;
|
||||
|
||||
use App\Models\Application;
|
||||
use App\Models\StaffAssignment;
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Mail\Mailable;
|
||||
use Illuminate\Mail\Mailables\Content;
|
||||
use Illuminate\Mail\Mailables\Envelope;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class KtmCreatedApplicantMail extends Mailable implements ShouldQueue
|
||||
{
|
||||
use Queueable, SerializesModels;
|
||||
|
||||
public function __construct(
|
||||
public Application $application,
|
||||
public StaffAssignment $ktmAssignment,
|
||||
) {}
|
||||
|
||||
public function envelope(): Envelope
|
||||
{
|
||||
return new Envelope(
|
||||
subject: 'Makluman Pendaftaran KP oleh KTM',
|
||||
);
|
||||
}
|
||||
|
||||
public function content(): Content
|
||||
{
|
||||
return new Content(
|
||||
markdown: 'emails.ktm.created-applicant',
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user