If you're displaying counts in your app, instead of pulling records into a Collection to count on, try aggregates! Working at the database level, aggregates are performed in one query and lower the memory usage of your app. Let's explore everything you need to know to work effectively with aggregate data in Laravel.
Hey, I'm the founder of Codecourse!
© 2023 Codecourse Ltd. All Rights Reserved. Born in the UK.