public function subscribedToPlan($plans, $subscription = 'default')
    {
        $subscription = $this->subscription($subscription);

        if (! $subscription || ! $subscription->valid()) {
            return false;
        }

        foreach ((array) $plans as $plan) {
            if ($subscription->braintree_plan === $plan) {
                return true;
            }
        }

        return false;
    }
public function subscribedToPlan($plans, $subscription = 'default')
    {
        $subscription = $this->subscription($subscription);

        if (! $subscription || ! $subscription->valid()) {
            return false;
        }

        foreach ((array) $plans as $plan) {
            if ($subscription->braintree_plan === $plan) {
                return true;
            }
        }

        return false;
    }
public function subscribedToPlan ( $ plans , $ subscription = 'default' ) { $ subscription = $ this -> subscription ( $ subscription ) ; if ( ! $ subscription || ! $ subscription -> valid ( ) ) { return false ; } foreach ( ( array ) $ plans as $ plan ) { if ( $ subscription -> braintree_plan === $ plan ) { return true ; } } return false ; }
Determine if the model is actively subscribed to one of the given plans.

@param  array|string  $plans
@param  string  $subscription
@return bool
Determine if the model is actively subscribed to one of the given plans .