This repository has been archived by the owner on May 26, 2023. It is now read-only.
Releases: bpuig/laravel-subby
Releases · bpuig/laravel-subby
v3.0.0 - Important notice
Notice: Since this package is used by me only and maybe 1 or 2 people. I'll allow myself to remove v1 and v2 and launch v3 because previous versions were really messed up. This version is working fine.
Breaking Changes
- Rename
User
toSubscriber
for a more generic use. Was not thought that a subscriber could be a customer, team, account... etc ofUser()
method inPlanSubscription
now isofSubscriber()
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();
Changes
- Default value in plans table for
invoice_period
is now 1. - Removed softDeletes
v0.4.2
0.4.1
0.4.0
New
- Added
uncancel()
method toPlanSubscription
. This removes all cancel flags. PlanSubscriptionSchedule
model scopepending()
acceptsCarbon
date as parameter to show pending until date.SubscriptionScheduleQueuerJob
accepts parameter for date limit.
Changes
- Method
renew()
no longer checks for ended period, only cancelled.
Other
- Minor fix with unused parameter.
- Minor doc changes
0.3.1
0.3.0
New
- Number of schedules per subscription can now be limited via config.
- Ability to check if subscription limit has been reached using
reachedScheduleLimit()
on subscription model. - Schedules per subscription config can be ignored with
ignoreLimit()
on subscription scheduling.
- Ability to check if subscription limit has been reached using
Other
- Moved
schedules()
relationship fromPlanSubscription
model toIsScheduled
trait. Since it's only available if trait is applied.
0.2.1
0.2.0
0.1.2
- Remove docs from README.md
You can check the new documentation at https://bpuig.github.io/laravel-subby/