public function allNodes()
    {
        $orderColumn = DB::getQueryGrammar()->wrap($this->orderColumn);
        $byOrder = $orderColumn.' = 0,'.$orderColumn;

        $self = new static();

        if ($this->queryCallback instanceof \Closure) {
            $self = call_user_func($this->queryCallback, $self);
        }

        return $self->orderByRaw($byOrder)->get()->toArray();
    }
public function allNodes()
    {
        $orderColumn = DB::getQueryGrammar()->wrap($this->orderColumn);
        $byOrder = $orderColumn.' = 0,'.$orderColumn;

        $self = new static();

        if ($this->queryCallback instanceof \Closure) {
            $self = call_user_func($this->queryCallback, $self);
        }

        return $self->orderByRaw($byOrder)->get()->toArray();
    }
public function allNodes ( ) { $ orderColumn = DB :: getQueryGrammar ( ) -> wrap ( $ this -> orderColumn ) ; $ byOrder = $ orderColumn . ' = 0,' . $ orderColumn ; $ self = new static ( ) ; if ( $ this -> queryCallback instanceof \ Closure ) { $ self = call_user_func ( $ this -> queryCallback , $ self ) ; } return $ self -> orderByRaw ( $ byOrder ) -> get ( ) -> toArray ( ) ; }
Get all elements.

@return mixed
Get all elements .