Support the ongoing development of →
Database Laravel Eloquent
Last updated by @duvalg 10 months ago.

I would use Query Builder instead of Eloquent, because unlike eloquent which makes a Model instance and then inserts, query builder writes directly to the db table


Here is a video link that explains how you can cut down your query time.

Seeding 50k DB Rows in Laravel:

It's a very short video and it will definitely help you :)

Solution selected by @duvalg

@lex Thanks for your reply, I'll look into that :)

@faisal Thx ! Can't believe I missed that one, I'm gonna watch this right now.

Thanks again for your help.

Last updated 11 months ago.

Sign in to participate in this thread!


Your banner here too?

Gaël Duval duvalg Joined 19 Apr 2022


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2023 - All rights reserved.