All notable changes to laravel-payments will be documented in this file.
User to Subscriber for a more generic use. Was not thought that a subscriber could be a customer, team,
account… etcofUser() method in PlanSubscription now is ofSubscriber()Changed method names to avoid confusion with possible scopes.
$user->subscribedTo($planId);
$user->subscription('main')->active();
$user->subscription('main')->canceled();
$user->subscription('main')->ended();
$user->subscription('main')->onTrial();
Now are:
$user->isSubscribedTo($planId);
$user->subscription('main')->isActive();
$user->subscription('main')->isCanceled();
$user->subscription('main')->hasEnded();
$user->subscription('main')->isOnTrial();
invoice_period is now 1.