<?php

namespace Database\Seeders;

// use Illuminate\Database\Console\Seeds\WithoutModelEvents;

use App\Models\Producto;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\Storage;

class DatabaseSeeder extends Seeder
{
    /**
     * Seed the application's database.
     */
    public function run(): void
    {
        Storage::deleteDirectory('productos');
        Storage::makeDirectory('productos');

        // \App\Models\User::factory(10)->create();

        \App\Models\User::factory()->create([
            'name' => 'Cetix',
            'apellido' => '2024',
            'tipo_documento' => '1',
            'numero_documento' => '1456123',
            'email' => 'cetix2024@gmail.com',
            'telefono' => '7777777',
            'password' => bcrypt('12345678')
        ]);

        $this->call([
            PermisoSeeder::class,
            RolSeeder::class,
            FamiliaSeeder::class,
            OpcionSeeder::class,

        ]);
        //Producto::factory(100)->create();
    }
}
