public getOthersAtSameDepth ( ) : Illuminate\Database\Eloquent\Collection | ||
return | Illuminate\Database\Eloquent\Collection |
public function getOthersAtSameDepth()
{
return $this->newNestedSetQuery()->where($this->getDepthColumnName(), '=', $this->getDepth())->withoutSelf();
}