Inserting multiple entries through a single query in eloquent model – Laravel

Yes it is possible to save multiple entries by just one query in Laravel model.

suppose a model in Laravel –


Then to make an entry in this model you just create an object of this and pass values in array and use function save().

like –

Similarly you can insert multiple records like –

It will work like charm 🙂

Please follow and like us:

Leave a Reply