src/Franzose/ClosureTable/Models/Entity.php
public static function getTree(array $columns = ['*'])
    {
        /**
         * @var Entity $instance
         */
        $instance = new static;

        return $instance->orderBy($instance->getParentIdColumn())->orderBy($instance->getPositionColumn())
            ->get($instance->prepareTreeQueryColumns($columns))->toTree();
    }
public static function getTree(array $columns = ['*'])
    {
        /**
         * @var Entity $instance
         */
        $instance = new static;

        return $instance->orderBy($instance->getParentIdColumn())->orderBy($instance->getPositionColumn())
            ->get($instance->prepareTreeQueryColumns($columns))->toTree();
    }
public static function getTree ( array $ columns = [ '*' ] ) { /**
         * @var Entity $instance
         */ $ instance = new static ; return $ instance -> orderBy ( $ instance -> getParentIdColumn ( ) ) -> orderBy ( $ instance -> getPositionColumn ( ) ) -> get ( $ instance -> prepareTreeQueryColumns ( $ columns ) ) -> toTree ( ) ; }
Retrieves entire tree.

@param array $columns
@return \Franzose\ClosureTable\Extensions\Collection
Retrieves entire tree .