src/Http/ParsesFlexibleAttributes.php
/**
     * Check if given attribute is a registered and usable 
     * flexible attribute
     *
     * @param  string $attribute
     * @param  mixed $value
     * @return bool
     */
Check if given attribute is a registered and usable
flexible attribute

@param  string $attribute
@param  mixed $value
@return bool
Check if given attribute is a registered and usable flexible attribute @param string $attribute @param mixed $value @return bool
protected function isFlexibleAttribute($attribute, $value)
    {
        if(!$this->getFlexibleAttribute($attribute)) {
            return false;
        }
        if(!$value || !is_string($value)) {
            return false;
        }
        return true;
    }
protected function isFlexibleAttribute ( $ attribute , $ value ) { if ( ! $ this -> getFlexibleAttribute ( $ attribute ) ) { return false ; } if ( ! $ value || ! is_string ( $ value ) ) { return false ; } return true ; }
Check if given attribute is a registered and usable
 flexible attribute
Check if given attribute is a registered and usable flexible attribute