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;
|
2023-07-28 08:55:26 +00:00
|
|
|
public function __construct(public string $emails)
|
2023-08-08 09:51:36 +00:00
|
|
|
{
|
|
|
|
}
|
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-09-01 13:52:18 +00:00
|
|
|
$mail->subject('Test Email');
|
2023-06-12 10:00:01 +00:00
|
|
|
$mail->view('emails.test');
|
|
|
|
return $mail;
|
|
|
|
}
|
2023-08-08 09:51:36 +00:00
|
|
|
}
|