Upgrading
Electrik 5.0.0 is the first stable release on the 5.x line.
Checklist (5.x → newer 5.x)
- Read the package CHANGELOG
composer update electrik/electrik electrik/slate- Re-run migrations if new ones shipped
php artisan electrik:permissions:syncif the catalog changedphp artisan electrik:stripe:syncif billing models changed- Diff
config/electrik.phpagainst the published stub (electrik:install --forceonly if you understand the overwrite)
Prefer a pinned version in production (5.0.0) or a caret range (^5.0) over historical @alpha constraints.
From 5.0.0-alpha.* → 5.0.0
composer require electrik/electrik:^5.0 electrik/slate:^3.0
php artisan migrate
php artisan electrik:permissions:sync --teams
php artisan electrik:stripe:sync
Review the CHANGELOG entries between your alpha pin and 5.0.0 for any config or view overrides you published.
4.x → 5.x
5.x is a new stack (Laravel 12, Slate 3, Livewire 4, package-first). Treat migration as a re-install onto a fresh app rather than an in-place upgrade from Electrik 4, unless you have a dedicated migration plan.