Skip to content
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

$with attribute lazy loading #38

Open
idevin opened this issue Jul 27, 2021 · 0 comments
Open

$with attribute lazy loading #38

idevin opened this issue Jul 27, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@idevin
Copy link

idevin commented Jul 27, 2021

I've tried nested $with option, but it seems does not work.

  • Laravel Version: 8.0.3
  • PHP Version: 8.0
  • NeoEloquent Version: 3.5

$with = ['users' => function ($query) use ($user) { $query->whereUserId($user->id)->with(['userValues' => function($query){ $query->with(['fields']); }]); }];

@idevin idevin added the bug Something isn't working label Jul 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant