public function value($feature, $default = null)
    {
        foreach ($this->subscription->plan->features as $key => $value) {
            if ($feature === $value->code) {
                return $value->value;
            }
        }

        return $default;
    }
public function value($feature, $default = null)
    {
        foreach ($this->subscription->plan->features as $key => $value) {
            if ($feature === $value->code) {
                return $value->value;
            }
        }

        return $default;
    }
public function value ( $ feature , $ default = null ) { foreach ( $ this -> subscription -> plan -> features as $ key => $ value ) { if ( $ feature === $ value -> code ) { return $ value -> value ; } } return $ default ; }
Get feature value.

@param  string $feature
@param  mixed $default
@return mixed
Get feature value .