<?php

namespace Database\Seeders;

use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;

class UserSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $data = [
            [
                'name' => 'Admin',
                'email' => 'Admin@mail.com',
                'password' => bcrypt('adminsaja'),
            ],
            [
                'name' => 'Kasir',
                'email' => 'Kasir@mail.com',
                'password' => bcrypt('kasirsaja'),
            ],
        ];

        foreach ($data as $key => $value) {
            \App\Models\User::create($value);
        }
    }
}
