<?php

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

class UserSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {

        DB::table('users')->insert([
            [
                'name' => 'Super Admin',
                'email' => 'super@admin.com',
                'role' => 'super_admin',
                'email_verified_at' => now(),
                'password' => bcrypt('123456'), // password
                'remember_token' => Str::random(10),
                'admin_token' => '5c65765a498c097ca0953b3af1e3bb90',
            ],
            [
                'name' => 'Admin',
                'email' => 'admin@admin.com',
                'role' => 'admin',
                'email_verified_at' => now(),
                'password' => bcrypt('123456'), // password
                'remember_token' => Str::random(10),
                'admin_token' => null
            ],
            [
                'name' => 'Sub Admin',
                'email' => 'sub@admin.com',
                'role' => 'sub_admin',
                'email_verified_at' => now(),
                'password' => bcrypt('123456'), // password
                'remember_token' => Str::random(10),
                'admin_token' => null
            ]
        ]);

    }
}
