<?php

namespace Database\Seeders;

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

class UserSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        User::create([
            "username" => "admin",
            "nama_lengkap" => "Aku Admin",
            "password" => Hash::make("1"),
            "role" => 0
        ]);
        User::create([
            "username" => "user",
            "nama_lengkap" => "Aku User",
            "password" => Hash::make("1"),
        ]);
    }
}
