Skip to main content

← Laravel

Eloquent N+1

easy

Listing 50 posts each with $post->author makes 51 queries. What fixes it?

Your answer

Answers

Stuck?

Open hints one at a time. The write-up explains a full solution.

Discussion

Ask a question or share a tip. Please don’t post full solutions. Posts appear once a moderator approves them.

No posts yet.