public function descendants($level = null)
	{
		$instance = self::blank();
		$instance->where('level', '>', $this->level)
		         ->order('lft', 'asc');

		if (isset($level))
		{
			$instance->where('level', '<=', $this->level + $level);
		}

		return $instance->where('lft', '>', $this->lft)
		                ->where('rgt', '<', $this->rgt)
		                ->applyScopesWhere($this);
	}
public function descendants($level = null)
	{
		$instance = self::blank();
		$instance->where('level', '>', $this->level)
		         ->order('lft', 'asc');

		if (isset($level))
		{
			$instance->where('level', '<=', $this->level + $level);
		}

		return $instance->where('lft', '>', $this->lft)
		                ->where('rgt', '<', $this->rgt)
		                ->applyScopesWhere($this);
	}
public function descendants ( $ level = null ) { $ instance = self :: blank ( ) ; $ instance -> where ( 'level' , '>' , $ this -> level ) -> order ( 'lft' , 'asc' ) ; if ( isset ( $ level ) ) { $ instance -> where ( 'level' , '<=' , $ this -> level + $ level ) ; } return $ instance -> where ( 'lft' , '>' , $ this -> lft ) -> where ( 'rgt' , '<' , $ this -> rgt ) -> applyScopesWhere ( $ this ) ; }
Establishes the query for all of the descendants of the current model

@param   int  $level  The level to limit to
@return  array
@since   2.1.0
Establishes the query for all of the descendants of the current model