vito/app/NotificationChannels/Email/NotificationMail.php
2024-03-24 09:56:34 +01:00

26 lines
485 B
PHP

<?php
namespace App\NotificationChannels\Email;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
class NotificationMail extends Mailable
{
use Queueable, SerializesModels;
public string $text;
public function __construct(string $subject, string $text)
{
$this->subject = $subject;
$this->text = $text;
}
public function build(): self
{
return $this->html($this->text);
}
}