mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-21 19:01:37 +00:00
* WIP notifications and other refactors - refactor notification channels - send notifications on events related to the servers and sites - delete server log files on server deletion - add telegram notification channel - add new icons - cache configs and icons on installation and updates - new navbar for dark mode and settings * discord channel * build assets * pint
26 lines
463 B
PHP
26 lines
463 B
PHP
<?php
|
|
|
|
namespace App\Mail;
|
|
|
|
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);
|
|
}
|
|
}
|