Mohamed shows how you can deal with N+1 problems using the $with model attribute and the newly added Model::preventLazyLoading() method.
PHP
Settling the File Structure Debate
Group by type or context / process? One of these methods will crush your project’s growth. Find out which! Read more