src/BaseRepositoryEloquent.php
protected function selectAttributes($attributes = ['*'])
    {
        $attributes = $attributes ?: ['*'];

        if ($attributes == ['*'] && $this->attributes != ['*']) {
            $attributes = $this->attributes;
        }

        return $attributes;
    }
protected function selectAttributes($attributes = ['*'])
    {
        $attributes = $attributes ?: ['*'];

        if ($attributes == ['*'] && $this->attributes != ['*']) {
            $attributes = $this->attributes;
        }

        return $attributes;
    }
protected function selectAttributes ( $ attributes = [ '*' ] ) { $ attributes = $ attributes ? : [ '*' ] ; if ( $ attributes == [ '*' ] && $ this -> attributes != [ '*' ] ) { $ attributes = $ this -> attributes ; } return $ attributes ; }
Return the final attributes to be selected.

@param  array $attributes
@return array
Return the final attributes to be selected .