lasthourcloud/app/Notifications/TransactionalEmails/Test.php

32 lines
694 B
PHP
Raw Normal View History

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;
2023-07-28 08:55:26 +00:00
class Test extends Notification implements ShouldQueue
2023-06-12 10:00:01 +00:00
{
use Queueable;
2023-07-28 08:55:26 +00:00
public function __construct(public string $emails)
{
}
2023-07-28 08:55:26 +00:00
2023-06-12 10:00:01 +00:00
public function via(): array
{
return [EmailChannel::class];
}
2023-07-28 08:55:26 +00:00
2023-06-12 10:00:01 +00:00
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;
}
}