Baum\Node::descendants PHP Method

descendants() public method

Set of all children & nested children.
public descendants ( ) : Builder
return Illuminate\Database\Query\Builder
    public function descendants()
    {
        return $this->descendantsAndSelf()->withoutSelf();
    }

Usage Example

Example #1
0
 protected function pruneScope()
 {
     if ($this->node->exists) {
         return $this->node->descendants();
     }
     return $this->node->newNestedSetQuery();
 }