src/Database/Models/Traits/AdditionalClosureScopes.php
/**
     * Retrieves query builder for root (with no ancestors) models.
     *
     * @return \Soda\ClosureTable\Extensions\Collection
     */
Retrieves query builder for root (with no ancestors) models.
Retrieves query builder for root ( with no ancestors ) models .
public static function collectRoots()
    {
        $instance = new static;
        return $instance->whereNull($instance->getParentIdColumn());
    }
public static function collectRoots ( ) { $ instance = new static ; return $ instance -> whereNull ( $ instance -> getParentIdColumn ( ) ) ; }
Retrieves query builder for root (with no ancestors) models.
Retrieves query builder for root ( with no ancestors ) models .
/**
         * @var Entity
         */