protected function getSelectedAttributes(Builder $builder)
    {
        $selected = $builder->getSelects();

        return array_merge($selected, [
            $builder->getSchema()->memberOf(),
        ]);
    }
protected function getSelectedAttributes(Builder $builder)
    {
        $selected = $builder->getSelects();

        return array_merge($selected, [
            $builder->getSchema()->memberOf(),
        ]);
    }
protected function getSelectedAttributes ( Builder $ builder ) { $ selected = $ builder -> getSelects ( ) ; return array_merge ( $ selected , [ $ builder -> getSchema ( ) -> memberOf ( ) , ] ) ; }
Retrieve the attributes to select for the scope.

This merges the current queries selected attributes so we
don't overwrite any other scopes selected attributes.

@param Builder $builder

@return array
Retrieve the attributes to select for the scope .