lasthourcloud/app/Notifications/TransactionalEmails/TestEmail.php
Andras Bacsai 1763e0341d fix
2023-06-21 10:53:24 +02:00

26 lines
629 B
PHP

<?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();
$mail->subject('Test Notification');
$mail->view('emails.test');
return $mail;
}
}