database/seeds/CompraSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        DB::table('compras')->insert([
            'user_id' => 1,
            'products_id'=> 1,
            'monto'=> 50,
            'tipoDePago' => 'K',
            'status'=> 'por enviar', 
        ]);
    }
public function run ( ) { DB :: table ( 'compras' ) -> insert ( [ 'user_id' => 1 , 'products_id' => 1 , 'monto' => 50 , 'tipoDePago' => 'K' , 'status' => 'por enviar' , ] ) ; }
Run the database seeds.
Run the database seeds .
//