-
When you call Media getUrl() method, it's result in a new model query for each media item.
Execute the query:
In a collection of 100 objects it will execute 101 queries Could this issue be solved somehow? |
Beta Was this translation helpful? Give feedback.
Answered by
erikn69
Mar 14, 2022
Replies: 1 comment 5 replies
-
For that it exists eager loading on laravel, you only have to read documentation |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
darkons
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For that it exists eager loading on laravel, you only have to read documentation