<?php

namespace Database\Seeders;

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

class UserTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $users = collect([
            [
                'first_name' => 'Nurmuhammet',
                'last_name' => 'Allanov',
                'name' => 'Nurmuhammet Allanov',
                'email' => 'nurmuhammet@mail.com',
                'email_verified_at' => now(),
                'password' => bcrypt('payload10'),
            ],
        ]);

        $users->each(fn ($user) => User::create($user));
    }
}
