lazychaser/laravel-nestedset

How to restrict descendants by status?

aimeos opened this issue · 1 comments

We want to retrieve the children of a node for building a menu but restrict the returned children by the status column. How can this be done besides filtering them after retrieval?

This seems to do the job: $root->descendants()->where( 'status', 1 )