I have a list of objects ( same object ) and I would like to insert them in the database at once.
I have tried with createMany but this method I think ( I haven't investigated ) calls create for each array which results
in a query to the database for each object. I would like to query the database something like this:
Insert multiple records in one query
Hello again, :)
I have a list of objects ( same object ) and I would like to insert them in the database at once. I have tried with createMany but this method I think ( I haven't investigated ) calls create for each array which results in a query to the database for each object. I would like to query the database something like this:
Any way I can do this with Eloquent? I haven't found anything yet.
Thanks