<?php

namespace Database\Seeders;

// use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use Illuminate\Support\Str;

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

        \App\Models\User::factory()->create([
            'name' => 'Super Admin',
            'email' => 'superadmin@example.com',
            'email_verified_at' => now(),
            'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password
            'remember_token' => Str::random(10),
        ]);

        $this->call([
            CurrencySeeder::class,
            CompanySeeder::class,
            AccountTypeSeeder::class,
            AccountSeeder::class,
            CategorySeeder::class,
            TaxSeeder::class,
            WithHoldingSeeder::class,
            UnitSeeder::class,
            CorporationSeeder::class,
            MaterialSeeder::class,
        ]);
    }
}
