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
19 lines
392 B
PHP
19 lines
392 B
PHP
<?php
|
|
|
|
namespace App\Contracts;
|
|
|
|
use Illuminate\Notifications\Messages\MailMessage;
|
|
|
|
interface Notification
|
|
{
|
|
public function rawText(): string;
|
|
|
|
public function toMail(object $notifiable): MailMessage;
|
|
|
|
public function toSlack(object $notifiable): string;
|
|
|
|
public function toDiscord(object $notifiable): string;
|
|
|
|
public function toTelegram(object $notifiable): string;
|
|
}
|