protected function getDistinctValues($attribute)
    {
        $attributeName = $this->getPrimaryAttribute($attribute);

        if (! property_exists($this, 'distinctValues')) {
            return $this->extractDistinctValues($attributeName);
        }

        if (! array_key_exists($attributeName, $this->distinctValues)) {
            $this->distinctValues[$attributeName] = $this->extractDistinctValues($attributeName);
        }

        return $this->distinctValues[$attributeName];
    }
protected function getDistinctValues($attribute)
    {
        $attributeName = $this->getPrimaryAttribute($attribute);

        if (! property_exists($this, 'distinctValues')) {
            return $this->extractDistinctValues($attributeName);
        }

        if (! array_key_exists($attributeName, $this->distinctValues)) {
            $this->distinctValues[$attributeName] = $this->extractDistinctValues($attributeName);
        }

        return $this->distinctValues[$attributeName];
    }
protected function getDistinctValues ( $ attribute ) { $ attributeName = $ this -> getPrimaryAttribute ( $ attribute ) ; if ( ! property_exists ( $ this , 'distinctValues' ) ) { return $ this -> extractDistinctValues ( $ attributeName ) ; } if ( ! array_key_exists ( $ attributeName , $ this -> distinctValues ) ) { $ this -> distinctValues [ $ attributeName ] = $ this -> extractDistinctValues ( $ attributeName ) ; } return $ this -> distinctValues [ $ attributeName ] ; }
Get the values to distinct between.

@param  string  $attribute
@return array
Get the values to distinct between .