protected function qualifyColumns($columns)
    {
        foreach($columns as &$column) {
            if(!in_array($column, $this->model->translatableAttributes())) {
                continue;
            }

            $primary = $this->qualifyTranslationColumn($column);
            $fallback = $this->qualifyTranslationColumn($column, true);

            if($this->model->shouldFallback()) {
                $column = new Expression($this->compileIfNull($primary, $fallback, $column));
            } else {
                $column = $primary;
            }
        }

        return $columns;
    }
protected function qualifyColumns($columns)
    {
        foreach($columns as &$column) {
            if(!in_array($column, $this->model->translatableAttributes())) {
                continue;
            }

            $primary = $this->qualifyTranslationColumn($column);
            $fallback = $this->qualifyTranslationColumn($column, true);

            if($this->model->shouldFallback()) {
                $column = new Expression($this->compileIfNull($primary, $fallback, $column));
            } else {
                $column = $primary;
            }
        }

        return $columns;
    }
protected function qualifyColumns ( $ columns ) { foreach ( $ columns as & $ column ) { if ( ! in_array ( $ column , $ this -> model -> translatableAttributes ( ) ) ) { continue ; } $ primary = $ this -> qualifyTranslationColumn ( $ column ) ; $ fallback = $ this -> qualifyTranslationColumn ( $ column , true ) ; if ( $ this -> model -> shouldFallback ( ) ) { $ column = new Expression ( $ this -> compileIfNull ( $ primary , $ fallback , $ column ) ) ; } else { $ column = $ primary ; } } return $ columns ; }
Qualify translated columns

@param $columns
@return mixed
Qualify translated columns