<?php

namespace Database\Seeders;

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

class UserSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        User::create([
            'name' => 'administrador',
            'email' => 'administrador',
            'password' => Hash::make('administrador2022!'),
        ])->assignRole('admin');
        User::create([
            'name' => 'Eduardo Gutierrez',
            'email' => 'eduardo',
            'password' => Hash::make('eduardo123'),
        ])->assignRole('usuario');
    }
}
