jiaxincui / closure-table

A closure table tree package for laravel eloquent
MIT License
109 stars 21 forks source link

$product->getRoot()->getTree() doesnt work #31

Open TonsiTT opened 3 hours ago

TonsiTT commented 3 hours ago

Hey, this is a great library and thanks for the effort.

I ran into an issue. For some reason this combination doesnt work for me

$product->getRoot(); //Works $product->getTree(); // Works

$product->getBesideTree(); // doesn't Work

$product->getRoot()->getTree(); //doesnt work

TonsiTT commented 2 hours ago

it works if i do this

getRoot()->getTree(['id', 'desc']);