Plugins base (#613)

* wip

* wip

* cleanup

* notification channels

* phpstan

* services

* remove server types

* refactoring

* refactoring
This commit is contained in:
Saeed Vaziry
2025-06-14 14:35:18 +02:00
committed by GitHub
parent adc0653d15
commit 131b828807
311 changed files with 3976 additions and 2660 deletions

View File

@ -3,6 +3,10 @@
namespace Database\Seeders;
use App\Models\NotificationChannel;
use App\NotificationChannels\Discord;
use App\NotificationChannels\Email;
use App\NotificationChannels\Slack;
use App\NotificationChannels\Telegram;
use Illuminate\Database\Seeder;
class NotificationChannelsSeeder extends Seeder
@ -11,7 +15,7 @@ public function run(): void
{
NotificationChannel::factory()->create([
'label' => 'Slack',
'provider' => \App\Enums\NotificationChannel::SLACK,
'provider' => Slack::id(),
'data' => [
'webhook' => 'slack_webhook',
],
@ -20,7 +24,7 @@ public function run(): void
NotificationChannel::factory()->create([
'label' => 'Discord',
'provider' => \App\Enums\NotificationChannel::DISCORD,
'provider' => Discord::id(),
'data' => [
'webhook' => 'discord_webhook',
],
@ -29,7 +33,7 @@ public function run(): void
NotificationChannel::factory()->create([
'label' => 'Telegram',
'provider' => \App\Enums\NotificationChannel::TELEGRAM,
'provider' => Telegram::id(),
'data' => [
'token' => 'telegram_token',
'chat_id' => 'telegram_chat_id',
@ -39,7 +43,7 @@ public function run(): void
NotificationChannel::factory()->create([
'label' => 'Email',
'provider' => \App\Enums\NotificationChannel::EMAIL,
'provider' => Email::id(),
'data' => [
'email' => 'email@vitodeploy.com',
],