<?php

namespace Database\Seeders;

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

class UsersTableSeeder extends Seeder
{
    public function run()
    {
        DB::table('users')->insert([
            'username' => 'admin',
            'name' => 'Super Admin',
            'email' => 'admin@msk.dinamika-avia.ru',
            'password' => Hash::make('12345678'),
            'is_admin' => true,
        ]);

        DB::table('users')->insert([
            'username' => 'bolotina',
            'name' => 'Юлия Болотина',
            'email' => 'bolotina@dinamika-avia.ru',
            'password' => Hash::make('12345678'),
            'is_admin' => false,
        ]);
    }
}
