laravel-nestedset icon indicating copy to clipboard operation
laravel-nestedset copied to clipboard

How customize toTree() method?

Open adminoid opened this issue 3 years ago • 0 comments

I have an ids array of collapsed item ids and want to check if item.id is equal to one of the ids, then return the empty children array, otherwise return normal children array. What is the right way to do that? Thanks in advance!

adminoid avatar May 21 '21 11:05 adminoid