<?php

namespace Database\Seeders;

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

class AdminUserSeeder extends Seeder
{
    public function run(): void
    {
        User::updateOrCreate(
            ['email' => 'admin@bakorwil.com'], // email sebagai kunci unik
            [
                'name' => 'Admin',
                'password' => 'admin123', // otomatis di-hash karena cast di model
            ]
        );

        User::updateOrCreate(
            ['email' => 'admin@bakorwil.go.id'],
            [
                'name' => 'Admin 2',
                'password' => 'admin123',
            ]
        );
    }
}

