Replies: 1 comment 1 reply
-
setContent expects a string, so either implement Stringable interface on the anonymous class or something like jsonSerializable. Not sure why that error shows up there though. What is the exact error when returning $post? |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Laravel Version
11.17.0
PHP Version
8.2.12
Database Driver & Version
MySQL
Description
I've traced the error till I found it from the 11.17.0 and higher
I'm not sure it's a bug or code safety restriction
Thanks
Steps To Reproduce
it occurs when returns the model or returns an anonymous class
Beta Was this translation helpful? Give feedback.
All reactions