-
-
Notifications
You must be signed in to change notification settings - Fork 237
-
-
Notifications
You must be signed in to change notification settings - Fork 237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Related records and accessors are not in the 'visible' list, can't automatically serialize model with relations to JSON #708
Comments
This bug applies to Eloquent Accessors - it won't be visible unless it won't be manually added to "visible" list, even if it has been added to $appends array in model. |
Did you extend OracleEloquent or just the default Laravel Model? |
Yes, |
This issue is stale because it has been open for 30 days with no activity. |
This issue was closed because it has been inactive for 7 days since being marked as stale. |
Summary of problem or feature request
Method ->with(), which added relation to model for future export toJson() or toArray() does not add field to 'visible list'.
Adding field via ->makeVisible([]) manually fixes problem;
Code snippet of problem
System details
The text was updated successfully, but these errors were encountered: