src/Gzero/EloquentTree/Model/Observer.php
public function saved(Tree $model)
    {
        if ($model->{$model->getTreeColumn('path')} === '') { // If we just save() new node
            $model->{$model->getTreeColumn('path')} = $model->getKey() . '/';
            DB::connection($model->getConnectionName())->table($model->getTable())
                ->where($model->getKeyName(), '=', $model->getKey())
                ->update(
                    array(
                        $model->getTreeColumn('path') => $model->{$model->getTreeColumn('path')}
                    )
                );
        }
    }
public function saved(Tree $model)
    {
        if ($model->{$model->getTreeColumn('path')} === '') { // If we just save() new node
            $model->{$model->getTreeColumn('path')} = $model->getKey() . '/';
            DB::connection($model->getConnectionName())->table($model->getTable())
                ->where($model->getKeyName(), '=', $model->getKey())
                ->update(
                    array(
                        $model->getTreeColumn('path') => $model->{$model->getTreeColumn('path')}
                    )
                );
        }
    }
public function saved ( Tree $ model ) { if ( $ model -> { $ model -> getTreeColumn ( 'path' ) } === '' ) { // If we just save() new node $ model -> { $ model -> getTreeColumn ( 'path' ) } = $ model -> getKey ( ) . '/' ; DB :: connection ( $ model -> getConnectionName ( ) ) -> table ( $ model -> getTable ( ) ) -> where ( $ model -> getKeyName ( ) , '=' , $ model -> getKey ( ) ) -> update ( array ( $ model -> getTreeColumn ( 'path' ) => $ model -> { $ model -> getTreeColumn ( 'path' ) } ) ) ; } }
After mode was saved we're building node path

@param Tree $model
After mode was saved we re building node path