Answer the question
In order to leave comments, you need to log in
How to create multiple rows in one table with one query?
ProductAttribute::create(['name' => 'Width', 'units' => 'cm', 'type_id' => '3']);
ProductAttribute::create(['name' => 'Height', 'units' => 'cm', 'type_id' => '3']);
ProductAttribute::create(['name' => 'Thickness', 'units' => 'cm', 'type_id' => '3']);
ProductAttribute::create(['name' => 'Weight', 'units' => 'kg', 'type_id' => '3']);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question