<?php

namespace Database\Seeders;

use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Hash;
use Carbon\Carbon;

class ConxUserSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        DB::table('conx_users')->insert([
            'first_name' => 'Super Admin',
            'last_name' => 'Conx',
            'password' => Hash::make('123456789'),
            'email_address' => 'superadmin@conx.com',
            'email_verified_at' => Carbon::now(),
            'is_active' => true,
            'role' => 'Superadmin',
            'phone_num' => '+12045001887',
        ]);

        DB::table('conx_users')->insert([
            'first_name' => 'Admin',
            'last_name' => 'Conx',
            'password' => Hash::make('123456789'),
            'email_address' => 'admin@conx.com',
            'email_verified_at' => Carbon::now(),
            'is_active' => true,
            'role' => 'Admin',
            'phone_num' => '+12045001887',
        ]);
    }
}
