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