From 556d93ecb88fa29ed0530a68f16edfaf69f26b42 Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Fri, 10 Oct 2025 18:08:37 +0200 Subject: [PATCH] refactor: remove SendsWebhook interface MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Simplified webhook channel implementation to match TelegramChannel pattern without typed interface. Changes: - Removed SendsWebhook interface file - Removed interface from Team model - Removed routeNotificationForWebhook() method - WebhookChannel now uses untyped $notifiable like TelegramChannel 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- app/Models/Team.php | 8 +------- app/Notifications/Channels/SendsWebhook.php | 8 -------- app/Notifications/Channels/WebhookChannel.php | 2 +- 3 files changed, 2 insertions(+), 16 deletions(-) delete mode 100644 app/Notifications/Channels/SendsWebhook.php diff --git a/app/Models/Team.php b/app/Models/Team.php index 211ea8ade..0bdda9272 100644 --- a/app/Models/Team.php +++ b/app/Models/Team.php @@ -7,7 +7,6 @@ use App\Notifications\Channels\SendsEmail; use App\Notifications\Channels\SendsPushover; use App\Notifications\Channels\SendsSlack; -use App\Notifications\Channels\SendsWebhook; use App\Traits\HasNotificationSettings; use App\Traits\HasSafeStringAttribute; use Illuminate\Database\Eloquent\Casts\Attribute; @@ -37,7 +36,7 @@ ] )] -class Team extends Model implements SendsDiscord, SendsEmail, SendsPushover, SendsSlack, SendsWebhook +class Team extends Model implements SendsDiscord, SendsEmail, SendsPushover, SendsSlack { use HasFactory, HasNotificationSettings, HasSafeStringAttribute, Notifiable; @@ -167,11 +166,6 @@ public function routeNotificationForPushover() ]; } - public function routeNotificationForWebhook() - { - return data_get($this, 'webhook_url', null); - } - public function getRecipients(): array { $recipients = $this->members()->pluck('email')->toArray(); diff --git a/app/Notifications/Channels/SendsWebhook.php b/app/Notifications/Channels/SendsWebhook.php deleted file mode 100644 index 9301a4ff0..000000000 --- a/app/Notifications/Channels/SendsWebhook.php +++ /dev/null @@ -1,8 +0,0 @@ -webhookNotificationSettings;