<?php

namespace Database\Seeders;

use App\Models\Setting;
use Illuminate\Database\Seeder;

class SettingSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $data = [
            'notification' => "Welcome To " . env('APP_NAME') . "!",
            'winning_multiplier' => 9,
            'manual_result' => NULL,
            'game_time' => 15,
            'commission' => 10,
            'support_link' => 'https://wa.me/2348123456789',
        ];

        foreach ($data as $key => $value) {
            Setting::updateOrCreate(
                ['key' => $key],
                ['value' => $value]
            );
        }
    }
}
