Answer the question
In order to leave comments, you need to log in
How to perform multiple data insert in laravel?
Good afternoon!
I'm learning Laravel and I need to add 1000 rows to a table. I know that you can add a loop like this:
$class->insert([
'name' => $val['one'],
'surname' => $val['two']
]);
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