descendants() public method

Set of all children & nested children.
public descendants ( ) : Builder
return Illuminate\Database\Query\Builder
Esempio n. 1
0
 protected function pruneScope()
 {
     if ($this->node->exists) {
         return $this->node->descendants();
     }
     return $this->node->newNestedSetQuery();
 }