Mellivora/Database/Eloquent/Relations/BelongsToMany.php
protected function shouldSelect(array $columns = ['*'])
    {
        if ($columns === ['*']) {
            $columns = [$this->related->getTable() . '.*'];
        }

        return array_merge($columns, $this->aliasedPivotColumns());
    }
protected function shouldSelect(array $columns = ['*'])
    {
        if ($columns === ['*']) {
            $columns = [$this->related->getTable() . '.*'];
        }

        return array_merge($columns, $this->aliasedPivotColumns());
    }
protected function shouldSelect ( array $ columns = [ '*' ] ) { if ( $ columns === [ '*' ] ) { $ columns = [ $ this -> related -> getTable ( ) . '.*' ] ; } return array_merge ( $ columns , $ this -> aliasedPivotColumns ( ) ) ; }
Get the select columns for the relation query.

@param array $columns

@return \Mellivora\Database\Eloquent\Relations\BelongsToMany
Get the select columns for the relation query .