Eager loading

Posted 5 months ago by ifbeifhri

When I use something like this:

$user->with('articles.comments')

will Laravel eager load both 'articles.comments' and 'articles' relationships or only 'articles.comments'?

Please sign in or create an account to participate in this conversation.