DB::table('product_attribute')->insert([
[
'product_id' => 1,
'attr_id' => 2
],
[
'product_id' => 1,
'attr_id' => 5
],
[
'product_id' => 2,
'attr_id' => 3
],
[
'product_id' => 2,
'attr_id' => 6
],
]);
DB::table('product_attribute')->insert(
[
'product_id' => 1,
'attr_id' => 1
],
[
'product_id' => 1,
'attr_id' => 2
],
);