database/seeders/DatabaseSeeder.php
/**
     * Seed the application's database.
     *
     * @return void
     */
Seed the application's database.
@return void
Seed the application ' s database . @return void
public function run()
    {
        Storage::deleteDirectory('public/posts');
        Storage::makeDirectory('public/posts');
        $this->call(RoleSeeder::class);
        $this->call(EstadoSeeder::class);
        $this->call(FederacionSeeder::class);
        $this->call(TallasropaSeeder::class);
        $this->call(TallascalzadoSeeder::class);
        $this->call(TallascamisaSeeder::class);
        $this->call(TallaschaquetaSeeder::class);
        $this->call(TallaspantalonSeeder::class);
        $this->call(TallaszapatillaSeeder::class);
        $this->call(DiaSeeder::class);
        $this->call(MesSeeder::class);
        $this->call(YearSeeder::class);
        $this->call(PaisSeeder::class);
        $this->call(UserSeeder::class);
        Category::factory(4)->create();
        Tag::factory(8)->create();
    }
public function run ( ) { Storage :: deleteDirectory ( 'public/posts' ) ; Storage :: makeDirectory ( 'public/posts' ) ; $ this -> call ( RoleSeeder :: class ) ; $ this -> call ( EstadoSeeder :: class ) ; $ this -> call ( FederacionSeeder :: class ) ; $ this -> call ( TallasropaSeeder :: class ) ; $ this -> call ( TallascalzadoSeeder :: class ) ; $ this -> call ( TallascamisaSeeder :: class ) ; $ this -> call ( TallaschaquetaSeeder :: class ) ; $ this -> call ( TallaspantalonSeeder :: class ) ; $ this -> call ( TallaszapatillaSeeder :: class ) ; $ this -> call ( DiaSeeder :: class ) ; $ this -> call ( MesSeeder :: class ) ; $ this -> call ( YearSeeder :: class ) ; $ this -> call ( PaisSeeder :: class ) ; $ this -> call ( UserSeeder :: class ) ; Category :: factory ( 4 ) -> create ( ) ; Tag :: factory ( 8 ) -> create ( ) ; }
Seed the application's database.
Seed the application ' s database .
//elimina la carpeta post //creamos la carpeta //Storage::makeDirectory('posts'); //llamo al seeder para los roles //  \App\Models\User::factory(10)->create(); //genere datos para la categoria