public function enabled($feature)
    {
        $feature_value = $this->value($feature);

        if (is_null($feature_value)) {
            return false;
        }

        // If value is one of the positive words configured then the
        // feature is enabled.
        if (in_array(strtoupper($feature_value), config('laraplans.positive_words'))) {
            return true;
        }

        return false;
    }
public function enabled($feature)
    {
        $feature_value = $this->value($feature);

        if (is_null($feature_value)) {
            return false;
        }

        // If value is one of the positive words configured then the
        // feature is enabled.
        if (in_array(strtoupper($feature_value), config('laraplans.positive_words'))) {
            return true;
        }

        return false;
    }
public function enabled ( $ feature ) { $ feature_value = $ this -> value ( $ feature ) ; if ( is_null ( $ feature_value ) ) { return false ; } // If value is one of the positive words configured then the // feature is enabled. if ( in_array ( strtoupper ( $ feature_value ) , config ( 'laraplans.positive_words' ) ) ) { return true ; } return false ; }
Check if subscription plan feature is enabled.

@param string $feature
@return bool
Check if subscription plan feature is enabled .