We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have a relationship named as user_other_infos and check_ups. I put them inside here:
->allowedIncludes(['user_other_infos', 'check_ups', 'cashiers', 'fecalyses']);
Those without underscore works but those with underscore don't work.
For now, I am removing the underscore to make it work.
The text was updated successfully, but these errors were encountered:
The names of the relationships will be converted to camel case.
So for user_other_infos, laravel-query-builder will look for userOtherInfos
user_other_infos
userOtherInfos
Sorry, something went wrong.
I'm using this workaround for now:
->allowedIncludes( 'cashiers', collect([ new AllowedInclude('check_ups', new IncludedRelationship(), 'check_ups'), ]) )
No branches or pull requests
I have a relationship named as user_other_infos and check_ups. I put them inside here:
->allowedIncludes(['user_other_infos', 'check_ups', 'cashiers', 'fecalyses']);
Those without underscore works but those with underscore don't work.
For now, I am removing the underscore to make it work.
The text was updated successfully, but these errors were encountered: