<?php

namespace Database\Seeders;

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

class SettingSeeder extends Seeder
{
    public function run(): void
    {
        $settings = [
            ['key' => 'store_name', 'value' => 'DigiShop'],
            ['key' => 'store_description', 'value' => 'Premium Digital Products Marketplace'],
            ['key' => 'whatsapp_number', 'value' => '6281234567890'],
            ['key' => 'logo_url', 'value' => ''],
        ];

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