database/seeders/Detalles_ventasTableSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        DB::table('detalles_venta')->insert([
            [
                'venta_id' => 1,
                'producto_id' => 1,
                'cantidad' => '18',
                'total' => '320',
            ]
        ]);
    }
public function run ( ) { DB :: table ( 'detalles_venta' ) -> insert ( [ [ 'venta_id' => 1 , 'producto_id' => 1 , 'cantidad' => '18' , 'total' => '320' , ] ] ) ; }
Run the database seeds.
Run the database seeds .