public static function isValid($code)
    {
        $features = config('laraplans.features');

        if (array_key_exists($code, $features)) {
            return true;
        }

        if (in_array($code, $features)) {
            return true;
        }

        return false;
    }
public static function isValid($code)
    {
        $features = config('laraplans.features');

        if (array_key_exists($code, $features)) {
            return true;
        }

        if (in_array($code, $features)) {
            return true;
        }

        return false;
    }
public static function isValid ( $ code ) { $ features = config ( 'laraplans.features' ) ; if ( array_key_exists ( $ code , $ features ) ) { return true ; } if ( in_array ( $ code , $ features ) ) { return true ; } return false ; }
Check if feature code is valid.

@param string $code
@return bool
Check if feature code is valid .