An issue with Mutators when API request #395
Unanswered
FullStackMusa
asked this question in
Q&A
Replies: 1 comment
-
Any updates or opinions? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When using API service, I want to show the translation value for the keys whois have multi-translation activated.
The problem is the request starts to load and comes back with 500 Internal Server Error :

PHP Fatal error: Allowed memory size of 536870912 bytes exhausted
I fix that by adding this @ [ Line 83 ~ src/HasTranslations.php ]:
Instead of
I don't know yet what is the issue but I fix it like that 👍

The result :
Model code :
Tested with multi relations and work fine.
Beta Was this translation helpful? Give feedback.
All reactions