<?php

namespace Database\Seeders;

use Illuminate\Database\Seeder;
use App\Models\User;
use Illuminate\Support\Facades\Hash;

class CourierSeeder extends Seeder
{
    public function run(): void
    {
        // Hapus data lama jika ada (optional agar tidak double)
        User::where('email', 'kurir@gmail.com')->delete();

        User::create([
            'name' => 'Bang Kurir Vogue',
            'email' => 'kurir@gmail.com',
            'password' => Hash::make('kurir123'), // SEKARANG SUDAH BERSIH TANPA SPASI
            'role' => 'courier', 
            'address' => 'Gudang Pusat Vogue3D',
            'province_code' => '32',
            'city_code' => '3273',
            'district_code' => '3273010',
            'village_code' => '3273010001',
        ]);
    }
}