Blog
September 2, 2021
Avoiding the N+1 problem in Laravel
Let's do some piggybacking on our code from Tip #1. Note how we fetch the User model for a given participant in the average function. This is highly problematic, because we're doing an additional...
ReadAugust 31, 2021
Refactoring to Laravel Collections
How you can avoid loops by using collections. It sounds great from the beginning but you need to practice it in order to be able to use it in your own projects.. Imagine you are developing a web...
Read