src/Mappable.php
protected function mappedSelectListsKey(Builder $query, $key)
    {
        if ($this->hasColumn($key)) {
            return $query->addSelect($this->getTable() . '.' . $key);
        }

        return $query->addSelect($key);
    }
protected function mappedSelectListsKey(Builder $query, $key)
    {
        if ($this->hasColumn($key)) {
            return $query->addSelect($this->getTable() . '.' . $key);
        }

        return $query->addSelect($key);
    }
protected function mappedSelectListsKey ( Builder $ query , $ key ) { if ( $ this -> hasColumn ( $ key ) ) { return $ query -> addSelect ( $ this -> getTable ( ) . '.' . $ key ) ; } return $ query -> addSelect ( $ key ) ; }
Add select clause for key of the list array.

@param  \Sofa\Eloquence\Builder $query
@param  string $key
@return \Sofa\Eloquence\Builder
Add select clause for key of the list array .