INSIGHTS / 01

Notes from
the codebase.

Short, practical write-ups on architecture, APIs, and shipping reliable software.

Eager Loading in Laravel: How to Fix N+1 Query Problems

Slow Laravel pages often come from the N+1 query problem. Learn how eager loading with with(), load() and withCount() turns hundreds of queries into just a few, and how to catch N+1 issues early with preventLazyLoading(), Debugbar and Telescope.

LaravelEloquentPerformance
Read ↗