<?php

namespace Database\Seeders;

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

class DatabaseSeeder extends Seeder
{
    /**
     * Seed the application's database.
     */
    public function run(): void
    {
        User::factory()->create([
            'name' => 'Admin',
            'email' => 'admin@tqcars.com',
            'password' => \Illuminate\Support\Facades\Hash::make('password'),
            'role' => 'admin',
        ]);

        $this->call([
            BranchSeeder::class,
            BrandSeeder::class,
            CustomerSeeder::class,
            CompleteCarSeeder::class,
            InsuranceCompanySeeder::class,
            VehicleInsuranceSeeder::class,
            MaintenanceSeeder::class,
            RentalSeeder::class,
            RolesAndPermissionsSeeder::class,
            SettingSeeder::class,
        ]);
    }
}
