xalaida/laravel-tree

Can I replace a new node into existing node with tree?

HeinKoZin opened this issue · 1 comments

I wanted to replace a new node into old existing node without losing children of existing node.

I suggest doing this in 3 steps:

  1. Create a new node in the correct place
  2. Move all children from the old node to the new one
  3. Remove old node