<?php

namespace Database\Seeders;

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

class SiteSettingSeeder extends Seeder
{
    public function run(): void
    {
        $defaults = [
            'title' => 'EmpireRP UCP',
            'logo' => '/images/logo.png',
            'favicon' => '/images/favicon.png',
            'donate_cost' => '200',
        ];

        foreach ($defaults as $key => $value) {
            SiteSetting::query()->firstOrCreate(['key' => $key], ['value' => $value]);
        }
    }
}
