ea3ab21beb
* 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
26 lines
553 B
PHP
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');
|
|
}
|
|
}
|