-
-
Notifications
You must be signed in to change notification settings - Fork 157
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
Can this be used with belongsToMany? #1
Comments
Sorry! I didn't scroll far enough down your documentation. Thank you so much. return $this->hasManyDeep(Venue::class, [
'area_user', Area::class
]); I'm just working on fetching entries now. |
Use this: return $this->hasManyDeep(Entry::class, [
'area_user', Area::class, Venue::class
]); |
@staudenmeir thank you so much for this. Working a charm! Appreciate the work. |
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
Excellent package! I currently have the following relations;
User →
belongsToMany
→ Area →hasMany
→ VenueIs there a way for me to get the users venues?
$user->venues;
A venue can then have "entries".
Venue →
hasMany
→ EntryI would then like to get the users entries based on the above. Is this possible?
My end goal would be to be able to do this;
Hope you can help!
The text was updated successfully, but these errors were encountered: