← All tasks
What you'll do
Write the Eloquent expression that eager loads a post's comments along with each comment's author, in one query chain.
Scenario
The post show page needs comments and commenter names without N+1 queries.
Ready to try it?
Create a free account and subscribe to take "Write an Eager Load for Comments and Their Authors". Earn 90 XP and track your internship progress.
Already have an account? Sign in