<?php

namespace Database\Seeders;

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

class UserSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        User::create([
            'name'      =>'root',
            'username'  =>'root',
            'numdoc' =>'00000000',
            'rol'       =>'root',
            'estado'    =>'1',
            'email'     =>'root@root.com',
            'password'  =>bcrypt('admin123')
        ])->assignRole('root');

        User::create([
            'name'      =>'Sandra Zamudio Campos',
            'username'  =>'szamudio',
            'numdoc' =>'70618465',
            'rol'       =>'admin',
            'estado'    =>'1',
            'email'     =>'szamudio@munipachacamac.gob.pe',
            'password'  =>bcrypt('70618465')
        ])->assignRole('admin');

    }
}
