<?php

namespace Database\Seeders;

use App\Models\Setting;
use App\Models\User;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\Hash;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;

class SettingSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        Setting::firstOrCreate(
            ['id' => '1'],
            [
                'name' => 'Ling VPN',
                'email' => 'admin@lingvpn.id',
                'phone' => '081000000000',
                'address1' => 'address1',
                'address2' => 'address2',
                'city' => 'bandung',
                'postal_code' => '00000',
                'region' => 'Indonesia',
                'min_amount' => '15000',
                'min_amount_ip' => '50000',
                'payment_expired' => '180',
            ]
        );
    }
}
