staudenmeir / eloquent-has-many-deep

Laravel Eloquent HasManyThrough relationships with unlimited levels
MIT License
2.67k stars 157 forks source link

global scopes #96

Closed alirzaj closed 3 years ago

alirzaj commented 4 years ago

hello, i have 4 related models and using this package i made hasManyDeep relations between them.

all of these 4 models have a global scope but when using deep relations they are not applied in inner joins.

how can i apply global scopes to be added in deep queries?

thanks a lot for your great package by the way. my whole project is based on it

staudenmeir commented 4 years ago

Please see #35.