lasthourcloud/app/Notifications/TransactionalEmails/Test.php

35 lines
729 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
2023-09-08 14:53:19 +00:00
public $tries = 5;
2024-06-10 20:43:34 +00:00
2024-07-25 20:04:05 +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
{
2024-07-25 20:04:05 +00:00
$mail = new MailMessage();
2024-07-25 20:50:18 +00:00
$mail->subject('Last Hour Cloud: Test Email');
2023-06-12 10:00:01 +00:00
$mail->view('emails.test');
2024-06-10 20:43:34 +00:00
2023-06-12 10:00:01 +00:00
return $mail;
}
}