Skip to content

Eager loading slugs? #2209

Answered by ifox
BezPowell asked this question in Q&A
Apr 5, 2023 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

Hi @BezPowell the relationship you are trying to eager load is named "slugs", not "page_slugs". You're on the right path by using with() on your query.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@BezPowell
Comment options

Answer selected by BezPowell
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants