Mark

Results 17 comments of Mark

you can read example. also u need to inject uiCalendarConfig

i dont use that method before maybe try that ``` $root = Category::root()->first(); $node= Category::create(['name' => 'node 2 ']); $node->makeChildOf($root); ```

oop. sorry. i dont test that. ``` $node = new Category; $node->name = "my name "; $node->save(); //setup parent id $root = Category::root(); $node->makeChildOf($root); ``` this code should be work....

i opened the db log, it also executes 15 queries(2 duplicated) nested tree need more time to do insertion method, bcz it need resorting, update parent etc... but it will...