2023-06-12 10:00:01 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Notifications\TransactionalEmails;
|
|
|
|
|
|
|
|
use App\Notifications\Channels\EmailChannel;
|
|
|
|
use Illuminate\Bus\Queueable;
|
|
|
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
|
|
|
use Illuminate\Notifications\Messages\MailMessage;
|
|
|
|
use Illuminate\Notifications\Notification;
|
|
|
|
|
|
|
|
class TestEmail extends Notification implements ShouldQueue
|
|
|
|
{
|
|
|
|
use Queueable;
|
|
|
|
public function via(): array
|
|
|
|
{
|
|
|
|
return [EmailChannel::class];
|
|
|
|
}
|
|
|
|
public function toMail(): MailMessage
|
|
|
|
{
|
|
|
|
$mail = new MailMessage();
|
2023-06-21 08:53:24 +00:00
|
|
|
$mail->subject('Test Notification');
|
2023-06-12 10:00:01 +00:00
|
|
|
$mail->view('emails.test');
|
|
|
|
return $mail;
|
|
|
|
}
|
|
|
|
}
|