<?php

namespace Database\Seeders;

use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Str;

class UserSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        DB::table('users')->insert([
            [
                'cms_role_id'    => 1,
                'id'             => (string) Str::uuid(),
                'name'           => 'superadmin',
                'email'          => 'superadmin@wheel.com',
                'phone'          => '088220148340',
                'status'         => 'active',
                'password'       => Hash::make('123456')
            ],

            [
                'cms_role_id'    => 2,
                'id'             => (string) Str::uuid(),
                'name'           =>'admin',
                'email'          =>'admin@wheel.com',
                'phone'          =>'082238982100',
                'status'         =>'active',
                'password'       =>Hash::make('123456')
            ],


        ]);
    }
}
