mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-04 07:22:34 +00:00
Merge (#127)
This commit is contained in:
25
app/NotificationChannels/Email/NotificationMail.php
Normal file
25
app/NotificationChannels/Email/NotificationMail.php
Normal file
@ -0,0 +1,25 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user