src/Observers/AttributeGroupObserver.php
protected function processAttributes($attributes)
    {
        if (!$attributes) {
            return [];
        }

        $attributes = explode(',', $attributes);

        foreach ($attributes as $key => $attribute) {
            $attributes[$key] = trim($attribute);
        }

        return $attributes;
    }
protected function processAttributes($attributes)
    {
        if (!$attributes) {
            return [];
        }

        $attributes = explode(',', $attributes);

        foreach ($attributes as $key => $attribute) {
            $attributes[$key] = trim($attribute);
        }

        return $attributes;
    }
protected function processAttributes ( $ attributes ) { if ( ! $ attributes ) { return [ ] ; } $ attributes = explode ( ',' , $ attributes ) ; foreach ( $ attributes as $ key => $ attribute ) { $ attributes [ $ key ] = trim ( $ attribute ) ; } return $ attributes ; }
Convert string of attributes to array.

@param  string

@return array
Convert string of attributes to array .