vito/app/Contracts/NotificationChannel.php
Saeed Vaziry e997d0deea
WIP notifications and other refactors (#88)
* 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
2024-01-07 09:54:08 +01:00

17 lines
330 B
PHP

<?php
namespace App\Contracts;
interface NotificationChannel
{
public function createRules(array $input): array;
public function createData(array $input): array;
public function data(): array;
public function connect(): bool;
public function send(object $notifiable, Notification $notification): void;
}