Eloquent query results are returning all translations #433
Unanswered
binaryfire
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Your expectation is correct. Example: $apples = Apple::all();
foreach ($apples as $apple) {
echo $apple->name;
} This should echo all the translated values. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all
Not sure if I'm doing something wrong, but when I get multiple results using Eloquent's
get()
orall()
I'm getting all the translations. Is that supposed to be happening? I expected that the package would just return the current locale's translation for the attributeBeta Was this translation helpful? Give feedback.
All reactions