<?php

use Illuminate\Database\Seeder;
use App\Models\Users;

class DatabaseSeeder extends Seeder
{
    /**
     * Seed the application's database.
     *
     * @return void
     */
    public function run()
    {
        // $this->call(UserSeeder::class);
        $now = time();
        $data = [
            'first_name' => 'admin',
            'last_name' => null,
            'email' => 'admin@gmail.com',
            'phone' => null,
            'password' => Hash::make('123'),
            'role' => Users::ROLE_ADMIN,
            'crt' => $now,
            'crt_by' => 0,
            'updt' => $now,
            'updt_by' => 0,
        ];
        Users::addUser($data);
    }
}
