Baum\Node::getOthersAtSameDepth PHP Method

getOthersAtSameDepth() public method

Retrieve all other nodes at the same depth,.
public getOthersAtSameDepth ( ) : Illuminate\Database\Eloquent\Collection
return Illuminate\Database\Eloquent\Collection
    public function getOthersAtSameDepth()
    {
        return $this->newNestedSetQuery()->where($this->getDepthColumnName(), '=', $this->getDepth())->withoutSelf();
    }