<?php

namespace Database\Seeders;

use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use DB;
use Illuminate\Support\Facades\Hash;
// app includes
use App\Models\User;

class UserSeeder extends Seeder {

    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run() {
        User::create([
            'profile_id' => env('PROFILE_ADMIN'),
            'first_name' => 'Administrador',
            'last_name' => 'General',
            'email' => 'admin@prosur.com',
            'password' => Hash::make('123456')
        ]);
        
        User::create([
            'profile_id' => env('PROFILE_COMPANY_USER'),
            'first_name' => 'General',
            'last_name' => 'Company test',
            'email' => 'general@prosur.com',
            'password' => Hash::make('123456')
        ]);
    }

}
