<?php

namespace Database\Seeders;

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

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

        User::factory()->create([
            'name' => 'Dina Ayu',
            'email' => 'dinaayu@gmail.com',
            'password' => Hash::make('12345'),
        ]);
        User::factory()->create([
            'name' => 'vcky.naand01',
            'email' => 'vickynando12@gmail.com',
            'password' => Hash::make('admin123'),
        ]);

        User::create([
            'name' => 'Admin',
            'email' => 'adminlegacy@gmail.com',
            'password' => Hash::make('password'),
            'role' => 'admin'
        ]);

        {
            $this->call([
                MejaSeeder::class,
                MenuSeeder::class,
                KritikSaranSeeder::class,
                MenuCategorySeeder::class,
                GalleryCategorySeeder::class,
            ]);
        }
    }
}
