database/seeders/TallasropaSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $tallas = [
            'XXS',
            'XS',
            'S',
            'M',
            'L',
            'XL',
            'XXL',
            'XXXL'
        ];
        foreach ($tallas as $talla) {
            Tallasropa::create([
                'valor' => $talla
            ]);
        }
    }
public function run ( ) { $ tallas = [ 'XXS' , 'XS' , 'S' , 'M' , 'L' , 'XL' , 'XXL' , 'XXXL' ] ; foreach ( $ tallas as $ talla ) { Tallasropa :: create ( [ 'valor' => $ talla ] ) ; } }
Run the database seeds.
Run the database seeds .