Lazychaser Laravel-Nestedset Get Tree

CategoryModel::all()->toTree()->toArray();
Shadow