<?php

namespace Database\Seeders;

use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Hash;

class FelhasznaloFeltoltes extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        DB::table('felhasznalok')->insert([[
            'nev' => 'Admin',
            'email' => 'admin@gmail.com',
            'felh_nev' => 'admin',
            'jelszo' => Hash::make('admin'),
            'is_admin' => true,
            'created_at' => now(),
            'updated_at' => now()
        ], [
            'nev' => 'Felhasználó',
            'email' => 'felhasznalo@gmail.com',
            'felh_nev' => 'felhasznalo',
            'jelszo' => Hash::make('felhasznalo'),
            'is_admin' => false,
            'created_at' => now(),
            'updated_at' => now()
        ]]);
    }
}
