lazychaser / laravel-nestedset

Effective tree structures in Laravel 4-8
3.65k stars 473 forks source link

fixTree does not work with Esensi Model #269

Closed herryswastika closed 6 years ago

herryswastika commented 6 years ago

Dear Mr Kalnoy, first of all, your package is really great, many thanks for this n God bless. I'd like to report that if I choose "use \Esensi\Model\Model;", the fixTree() does not work i.e. _lft and _rgt are still zero. But if I choose "use Illuminate\Database\Eloquent\Model;", all are working well. A side question: I've managed to use traverse function in the Blade view with the proper "a list-group-item href route" etc etc, however is there any way that the output will be 1 Root 1.1 Child 1 1.1.1 Sub child 1 1.2 Child 2 2 Another root instead of:

lazychaser commented 6 years ago

Hi. I do not guarantee correct work with other packages. And I also do not consult about the usage of the package.