Using Laravel’s Eloquent Efficiently
Rudi Theunissen
3134

In summary, in case we used the builder, builder will generate the custom query and apply it to the db directly, but if we used the collection, this will load all the data and then applying the query on the loaded collection.

For sure, this will make much difference if you have thousands of records..

Thanks!

A single golf clap? Or a long standing ovation?

By clapping more or less, you can signal to us which stories really stand out.