phpvms/app/Notifications/Notifiables/Broadcast.php
Nabeel S ea3ab21beb
391 Notification refactorings (#441)
* Refactor notifications to allow easier plugins

* Notification refactoring

* Formatting

* Move news to NewsService; cleanup of events

* More refactoring; added send email out for news item and the template

* Formatting

* Formatting
2019-11-20 10:16:01 -05:00

26 lines
553 B
PHP

<?php
namespace App\Notifications\Notifiables;
use Illuminate\Notifications\Notifiable;
/**
* These are notifications that get broadcasted, not to a single person
* (e.g, on Discord, Slack or Telegram or something)
*
* $notifyable = app(Broadcast::class);
* $notifyable->notify($eventclass);
*/
class Broadcast
{
use Notifiable;
/**
* Routing for Discord - the public channel ID that's used
*/
public function routeNotificationForDiscord()
{
return setting('notifications.discord_public_channel_id');
}
}