protected function updateSubscriptionsToPaymentMethod($token)
    {
        foreach ($this->subscriptions as $subscription) {
            if ($subscription->active()) {
                BraintreeSubscription::update($subscription->braintree_id, [
                    'paymentMethodToken' => $token,
                ]);
            }
        }
    }
protected function updateSubscriptionsToPaymentMethod($token)
    {
        foreach ($this->subscriptions as $subscription) {
            if ($subscription->active()) {
                BraintreeSubscription::update($subscription->braintree_id, [
                    'paymentMethodToken' => $token,
                ]);
            }
        }
    }
protected function updateSubscriptionsToPaymentMethod ( $ token ) { foreach ( $ this -> subscriptions as $ subscription ) { if ( $ subscription -> active ( ) ) { BraintreeSubscription :: update ( $ subscription -> braintree_id , [ 'paymentMethodToken' => $ token , ] ) ; } } }
Update the payment method token for all of the model's subscriptions.

@param  string  $token
@return void
Update the payment method token for all of the model s subscriptions .