How to manipulate RelationManager query with laravel-adjacency-list tree() query?

Hi guys, I am using the laravel-adjacency-list package to work with hierarchies in my models. In my ModelResource I manipulate the query with: ->modifyQueryUsing(function (Builder $query) { return $query->tree()->orderBy('path'); }) and it works perfectly. However because the RelationManager has already a scope, the query manipulation is not working like this. Can anybody help me with the right manipulation to get the same tree() result in my RelationManager? Thanks
0 Replies
No replies yetBe the first to reply to this messageJoin