<?php

namespace Database\Seeders;

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

class DatabaseSeeder extends Seeder
{
    /**
     * Seed the application's database.
     */
    public function run(): void
    {
        // User::factory(10)->create();

        User::factory()->create([
            'name' => 'Darkone',
            'email' => 'user@demo.com',
            'email_verified_at' => now(),
            'password' => Hash::make('password'),
            'firstname' => 'John',
            'lastname' => 'Doe',
            'position' => 'crusial',
            'remember_token' => Str::random(10),
        ]);
    }
}
