T
T
Twelfth Doctor2017-07-03 14:03:34
Laravel
Twelfth Doctor, 2017-07-03 14:03:34

How to create multiple Eloquent Laravel models?

Hello! Tell me, is it possible to create several Laravel models at once?

Fruits::create(['name'=>'banana', 'color'=>'yellow'] , ['name'=>'apple' , 'color'=>'green'])

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mokhirjon Naimov, 2017-07-03
@verdex

How to insert multiple rows from a single query us...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question