Baum\Node::siblingsAndSelf PHP Method

siblingsAndSelf() public method

Instance scope which targets all children of the parent, including self.
public siblingsAndSelf ( ) : Builder
return Illuminate\Database\Eloquent\Builder
    public function siblingsAndSelf()
    {
        return $this->newNestedSetQuery()->where($this->getParentColumnName(), $this->getParentId());
    }