# Upgrade v5.x to v6.x
# Composer
In your composer version, require v6.0
version.
"bpuig/laravel-subby": "^v6.0",
# Config
# New lines in config
Added plan_combinations
under tables
and models:
'tables' => [
...
'plan_combinations' => 'plan_combinations',
...
],
// Models
'models' => [
...
'plan_combinations' => \Bpuig\Subby\Models\PlanCombination::class,
...
]
Added payment_methods
, 'services'
now look should like this:
'services' => [
'payment_methods' => [
'free' => \Bpuig\Subby\Services\PaymentMethods\Free::class
]
]
# Removed lines in config:
In 'services'
:
'services' => [
'schedule' => [
'default' => \Bpuig\Subby\Services\ScheduleService::class
]
]
# Migrations
Publish v6 migrations
php artisan vendor:publish --tag=subby.migrations.v6.0.0
php artisan migrate
# Breaking changes
# Plan subscription schedule
- Method
usingService
is abandoned to use subscription's payment method. - There are no longer multiple services to process the schedule. There is only one and it uses payments set via config.
← Installation Models →