database/seeders/ProductoSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        DB::table('productos')->insert([
            'nombre'=> 'Falda corta',
            'marca'=> 'Zara',
            'precio'=> '$250',
            'tipo'=>'chica',
            'url'=> 'https://www.diariodesevilla.es/2021/04/21/wappissima/tendencias/Falda-corta-flores-Stradivarius-celeste_1567053549_137430691_1200x1332.png',
            'created_at'=> now(),
            'updated_at'=> now(),
        ]);
    }
public function run ( ) { DB :: table ( 'productos' ) -> insert ( [ 'nombre' => 'Falda corta' , 'marca' => 'Zara' , 'precio' => '$250' , 'tipo' => 'chica' , 'url' => 'https://www.diariodesevilla.es/2021/04/21/wappissima/tendencias/Falda-corta-flores-Stradivarius-celeste_1567053549_137430691_1200x1332.png' , 'created_at' => now ( ) , 'updated_at' => now ( ) , ] ) ; }
Run the database seeds.
Run the database seeds .