src/QueryParserCustomFields.php
protected function parseColumns(string $columns): void
    {
        // Split the columns string into individual columns
        $columns = explode(',', $columns);

        foreach ($columns as &$column) {
            if (strpos($column, '.') === false) {
                $column = "{$this->model->getSource()}.{$column}";
            } else {
                $as = str_replace('.', '_', $column);
                $column = "{$column} {$as}";
            }
        }

        $this->columns = implode(', ', $columns);
    }
protected function parseColumns(string $columns): void
    {
        // Split the columns string into individual columns
        $columns = explode(',', $columns);

        foreach ($columns as &$column) {
            if (strpos($column, '.') === false) {
                $column = "{$this->model->getSource()}.{$column}";
            } else {
                $as = str_replace('.', '_', $column);
                $column = "{$column} {$as}";
            }
        }

        $this->columns = implode(', ', $columns);
    }
protected function parseColumns ( string $ columns ) : void { // Split the columns string into individual columns $ columns = explode ( ',' , $ columns ) ; foreach ( $ columns as & $ column ) { if ( strpos ( $ column , '.' ) === false ) { $ column = "{$this->model->getSource()}.{$column}" ; } else { $ as = str_replace ( '.' , '_' , $ column ) ; $ column = "{$column} {$as}" ; } } $ this -> columns = implode ( ', ' , $ columns ) ; }
Parse the requested columns to be returned.

@param string $columns

@return void
Parse the requested columns to be returned .