Buy your loved one the ultimate gift. Lifetime gift certificates are $100 off.

Back to the Learning!

Laracasts is packed full with over 1,000 lessons just like this one.

Sign up to get full access or log in to your account and sit back.

Published On Mar. 11th 2015

Advanced Eloquent: Eager Loading is a Beast

Episode 5 Run Time 20:05

Download

The reality is that there's significant complexity to a full-featured ORM, like Eloquent. One area where this is immediately apparent is eager loading. In this episode, as best as we can, we'll decode this process, piece by piece. How exactly does Post::with('comments')->get() work underneath the hood?