database/seeders/TallaspantalonSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $tallas = [
            '0-2',
            '4-6',
            '8-10',
            '12-14',
            '16-18',
            '28-30',
            '28-32',
            '28-34',
            '28-36',
            '30-30',
            '30-32',
            '30-34',
            '30-36',
            '30-38',
            '32-30',
            '32-32',
            '32-34',
            '32-36',
            '32-38',
            '34-30',
            '34-32',
            '34-34',
            '34-36',
            '34-38',
            '36-30',
            '36-32',
            '36-34',
            '36-36',
            '36-38',
            '38-30',
            '38-32',
            '38-34',
            '38-36',
            '38-38',
            '40-30',
            '40-32',
            '40-34',
            '40-36',
            '40-38',
            '42-30',
            '42-32',
            '42-34',
            '42-36',
            '42-38',
            '44-30',
            '44-32',
            '44-34',
            '44-36',
            '44-38',
            '46-30',
            '46-32',
            '46-34',
            '46-36',
            '46-38',
            '48-30',
            '48-32',
            '48-34',
            '48-36',
            '48-38',
            '50-30',
            '50-32',
            '50-34',
            '50-36',
            '50-38',
        ];
        foreach ($tallas as $talla) {
            Tallaspantalon::create([
                'valor' => $talla
            ]);
        }
    }
public function run ( ) { $ tallas = [ '0-2' , '4-6' , '8-10' , '12-14' , '16-18' , '28-30' , '28-32' , '28-34' , '28-36' , '30-30' , '30-32' , '30-34' , '30-36' , '30-38' , '32-30' , '32-32' , '32-34' , '32-36' , '32-38' , '34-30' , '34-32' , '34-34' , '34-36' , '34-38' , '36-30' , '36-32' , '36-34' , '36-36' , '36-38' , '38-30' , '38-32' , '38-34' , '38-36' , '38-38' , '40-30' , '40-32' , '40-34' , '40-36' , '40-38' , '42-30' , '42-32' , '42-34' , '42-36' , '42-38' , '44-30' , '44-32' , '44-34' , '44-36' , '44-38' , '46-30' , '46-32' , '46-34' , '46-36' , '46-38' , '48-30' , '48-32' , '48-34' , '48-36' , '48-38' , '50-30' , '50-32' , '50-34' , '50-36' , '50-38' , ] ; foreach ( $ tallas as $ talla ) { Tallaspantalon :: create ( [ 'valor' => $ talla ] ) ; } }
Run the database seeds.
Run the database seeds .