<?php

namespace Database\Seeders;

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

class DatabaseSeeder extends Seeder
{
    /**
     * Seed the application's database.
     */
    public function run(): void
    {
        User::insert([
            [
                'nis' => '1234567890',
                'password' => Hash::make('password123'),
                'level' => 1,
                'nama' => 'Admin',
                'alamat' => 'Jl. MH. Thamrin No. 10, Ajong',
                'status_santri' => 'aktif',
                'jk' => 'laki laki',
                'tanggal_lahir' => '2005-08-15',
                'foto' => null,
                'no_telp' => '80989080980'
            ],
            [
                'nis' => '0987654321',
                'password' => Hash::make('pitik123'),
                'level' => 2,
                'nama' => 'Ahmad Kasim',
                'alamat' => 'Jl. Pesantren No. 10, Jakarta',
                'status_santri' => 'aktif',
                'jk' => 'laki laki',
                'tanggal_lahir' => '2003-08-15',
                'foto' => null,
                'no_telp' => '80989080980'
            ]
        ],);
    }
}
