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
This commit is contained in:
25
app/Notifications/Notifiables/Backups.php
Normal file
25
app/Notifications/Notifiables/Backups.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace App\Notifications\Notifiables;
|
||||
|
||||
use Illuminate\Notifications\Notifiable;
|
||||
|
||||
class Backups
|
||||
{
|
||||
use Notifiable;
|
||||
|
||||
public function routeNotificationForMail()
|
||||
{
|
||||
return setting('general.admin_email');
|
||||
}
|
||||
|
||||
public function routeNotificationForSlack()
|
||||
{
|
||||
return config('backup.notifications.slack.webhook_url');
|
||||
}
|
||||
|
||||
public function getKey()
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user