ifbeifhri
1 year ago

Eager loading

Posted 1 year 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.