<?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' => 'info@central.com',
                'phone' => '123456789',
                'admin_token' => 'd719168017ea9b83c676e932a5649443',
                'role' => 'super_admin',
                'email_verified_at' => now(),
                'password' => bcrypt('123456'),
                'remember_token' => Str::random(10),
            ],
            [
                'name' => 'Admin',
                'email' => 'admin@admin.com',
                'phone' => null,
                'admin_token' => null,
                'role' => 'admin',
                'email_verified_at' => now(),
                'password' => bcrypt('123456'), // password
                'remember_token' => Str::random(10),
            ],
            [
                'name' => 'Sub admin',
                'email' => 'sub@admin.com',
                'phone' => null,
                'admin_token' => null,
                'role' => 'sub_admin',
                'email_verified_at' => now(),
                'password' => bcrypt('123456'), // password
                'remember_token' => Str::random(10),
            ],
        ]);

    }
}
