This commit is contained in:
Saeed Vaziry
2024-12-14 03:13:47 +01:00
committed by GitHub
parent 0d12dd0c69
commit 572d1df010
20 changed files with 734 additions and 67 deletions

View File

@ -0,0 +1,49 @@
<?php
namespace Database\Seeders;
use App\Models\NotificationChannel;
use Illuminate\Database\Seeder;
class NotificationChannelsSeeder extends Seeder
{
public function run(): void
{
NotificationChannel::factory()->create([
'label' => 'Slack',
'provider' => \App\Enums\NotificationChannel::SLACK,
'data' => [
'webhook' => 'slack_webhook',
],
'connected' => 1,
]);
NotificationChannel::factory()->create([
'label' => 'Discord',
'provider' => \App\Enums\NotificationChannel::DISCORD,
'data' => [
'webhook' => 'discord_webhook',
],
'connected' => 1,
]);
NotificationChannel::factory()->create([
'label' => 'Telegram',
'provider' => \App\Enums\NotificationChannel::TELEGRAM,
'data' => [
'token' => 'telegram_token',
'chat_id' => 'telegram_chat_id',
],
'connected' => 1,
]);
NotificationChannel::factory()->create([
'label' => 'Email',
'provider' => \App\Enums\NotificationChannel::EMAIL,
'data' => [
'email' => 'email@vitodeploy.com',
],
'connected' => 1,
]);
}
}