<?php

namespace Database\Seeders;

use App\Models\User;
// use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use App\Models\Admin;
use App\Models\Master;
use Illuminate\Support\Str;
use Illuminate\Database\Seeder;

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

        // User::factory()->create([
        //     'name' => 'Test User',
        //     'email' => 'test@example.com',
        // ]);

        Admin::factory()->create([
            'name' => config('app.name'),
            'email' => 'admin@gmail.com',
            'live_chat_id' => Str::uuid(),
            'smtp_user' => '8eba1b62b2a97d',
            'smtp_password' => '2a8ae793797dd0',
            'smtp_host' => 'sandbox.smtp.mailtrap.io',
            'smtp_port' => '2525',
            'smtp_encryption' => 'tls',
        ]);

        Master::factory()->create([
            'name'      => config('app.name'),
            'email'     => 'master@gmail.com',
        ]);

        $this->call([ShipmentTableSeeder::class, ShipmentLocationTableSeeder::class]);
    }
}
