Events¶
The following are the events fired by the package:
Gerardojbaez\Laraplans\Events\SubscriptionCreated
: Fired when a subscription is created.Gerardojbaez\Laraplans\Events\SubscriptionRenewed
: Fired when a subscription is renewed using therenew()
method.Gerardojbaez\Laraplans\Events\SubscriptionCanceled
: Fired when a subscription is canceled using thecancel()
method.Gerardojbaez\Laraplans\Events\SubscriptionPlanChanged
: Fired when a subscription’s plan is changed; it will be fired once thePlanSubscription
model is saved. Plan change is determined by comparing the original and current value ofplan_id
.