Your Laravel List Page Is Firing 101 Queries: Fixing N+1 with Eager Loading
A Laravel list page that fires one query per row has the classic N+1 problem. Here's how Eloquent's with() fixes it, how to prove it in Tinker, and when eager loading is the wrong tool.