laravel-nestedset
laravel-nestedset copied to clipboard
Parent not included with requests
I have this package installed alongside spatie/laravel-query-builder but trying to include the parent with the request does nothing. I opened a discussion on the Query Builder side, but it seems like this is a problem in nested set.
It seems like the problem stems from the fix to an earlier issue^1. While this fix works it seems to have the unintended consequence of removing parent relationship when requesting it and it has led to confusion and multiple issues^2.
I think this fix should be revisited and implemented such that it doesn't interfere with other features.
https://github.com/lazychaser/laravel-nestedset/blob/afb137395ef82c88c96bc9f2f4c868d1631fc4a9/src/NodeTrait.php#L1078-L1089