protected function getPrimaryAttribute($attribute)
    {
        foreach ($this->implicitAttributes as $unparsed => $parsed) {
            if (in_array($attribute, $parsed)) {
                return $unparsed;
            }
        }

        return $attribute;
    }
protected function getPrimaryAttribute($attribute)
    {
        foreach ($this->implicitAttributes as $unparsed => $parsed) {
            if (in_array($attribute, $parsed)) {
                return $unparsed;
            }
        }

        return $attribute;
    }
protected function getPrimaryAttribute ( $ attribute ) { foreach ( $ this -> implicitAttributes as $ unparsed => $ parsed ) { if ( in_array ( $ attribute , $ parsed ) ) { return $ unparsed ; } } return $ attribute ; }
Get the primary attribute name.

For example, if "name.0" is given, "name.*" will be returned.

@param  string  $attribute
@return string
Get the primary attribute name .