src/EloquentDataTable.php
protected function resolveRelationColumn($column)
    {
        $parts      = explode('.', $column);
        $columnName = array_pop($parts);
        $relation   = implode('.', $parts);

        if ($this->isNotEagerLoaded($relation)) {
            return $column;
        }

        return $this->joinEagerLoadedColumn($relation, $columnName);
    }
protected function resolveRelationColumn($column)
    {
        $parts      = explode('.', $column);
        $columnName = array_pop($parts);
        $relation   = implode('.', $parts);

        if ($this->isNotEagerLoaded($relation)) {
            return $column;
        }

        return $this->joinEagerLoadedColumn($relation, $columnName);
    }
protected function resolveRelationColumn ( $ column ) { $ parts = explode ( '.' , $ column ) ; $ columnName = array_pop ( $ parts ) ; $ relation = implode ( '.' , $ parts ) ; if ( $ this -> isNotEagerLoaded ( $ relation ) ) { return $ column ; } return $ this -> joinEagerLoadedColumn ( $ relation , $ columnName ) ; }
Resolve the proper column name be used.

@param string $column
@return string
Resolve the proper column name be used .