src/Franzose/ClosureTable/Models/Entity.php
public static function getTreeWhere($column, $operator = null, $value = null, array $columns = ['*'])
    {
        /**
         * @var Entity $instance
         */
        $instance = new static;
        $columns = $instance->prepareTreeQueryColumns($columns);

        return $instance->where($column, $operator, $value)->get($columns)->toTree();
    }
public static function getTreeWhere($column, $operator = null, $value = null, array $columns = ['*'])
    {
        /**
         * @var Entity $instance
         */
        $instance = new static;
        $columns = $instance->prepareTreeQueryColumns($columns);

        return $instance->where($column, $operator, $value)->get($columns)->toTree();
    }
public static function getTreeWhere ( $ column , $ operator = null , $ value = null , array $ columns = [ '*' ] ) { /**
         * @var Entity $instance
         */ $ instance = new static ; $ columns = $ instance -> prepareTreeQueryColumns ( $ columns ) ; return $ instance -> where ( $ column , $ operator , $ value ) -> get ( $ columns ) -> toTree ( ) ; }
Retrieves tree by condition.

@param mixed $column
@param mixed $operator
@param mixed $value
@param array $columns
@return \Franzose\ClosureTable\Extensions\Collection
Retrieves tree by condition .