Merge pull request #6837 from coollabsio/andrasbacsai/custom-webhooks

feat: add custom webhook notification support
This commit is contained in:
Andras Bacsai
2025-10-12 10:57:47 +02:00
committed by GitHub
29 changed files with 889 additions and 0 deletions

View File

@@ -7,6 +7,7 @@ use App\Notifications\Channels\EmailChannel;
use App\Notifications\Channels\PushoverChannel;
use App\Notifications\Channels\SlackChannel;
use App\Notifications\Channels\TelegramChannel;
use App\Notifications\Channels\WebhookChannel;
use Illuminate\Database\Eloquent\Model;
trait HasNotificationSettings
@@ -31,6 +32,7 @@ trait HasNotificationSettings
'telegram' => $this->telegramNotificationSettings,
'slack' => $this->slackNotificationSettings,
'pushover' => $this->pushoverNotificationSettings,
'webhook' => $this->webhookNotificationSettings,
default => null,
};
}
@@ -78,6 +80,7 @@ trait HasNotificationSettings
'telegram' => TelegramChannel::class,
'slack' => SlackChannel::class,
'pushover' => PushoverChannel::class,
'webhook' => WebhookChannel::class,
];
if ($event === 'general') {