Upgrading
The SDK has followed strict semantic versioning since 1.0.0. That is a promise with teeth, and it is what makes upgrading a short procedure rather than a project:
- Patch — a fix. Nothing you wrote changes.
- Minor — additions. Nothing you wrote changes.
- Major — a contract breaks, deliberately and with notice.
There is no longer any convention under which a breaking change ships as a patch. The 0.x line had one — SemVer credit spent, while every consumer was in-house — and it was retired at 1.0.0 across the whole stack.
Before you run anything: read the head of the changelog
Each release opens with a sentence naming what it was about, and — this is the part worth reading — the intro paragraph says what to run. A typical one ends:
Nothing here requires action on upgrade beyond the usual
ui5:sync,ui5:help --allandui5:nav.
When a release needs more than that, this is where it says so, and that is the kind of thing you cannot infer from the version number. Read it.
The procedure
composer update laravelui5/sdk -W
php artisan migrate --force
php artisan ui5:sync
php artisan ui5:cache && php artisan ui5:nav
php artisan ui5:help --all
php artisan ui5:publish --force-W (--with-dependencies) matters: the SDK's tables ship in laravelui5/sdk-db, released in step with the SDK under the same version. Without -W Composer updates the SDK alone, and the first release that needs a newer sdk-db fails to resolve.
It is the deploy chain — an upgrade is a deploy, and running the shorter version of it is how installations end up in half-states.
The shell upgrades itself
The bundle ships inside the package and is served from there, at a URL carrying the SDK version. So an upgrade moves the URL by construction: the browser requests a file it has never seen, and there is no cache to purge and no hard reload to remember. ui5:publish still belongs in the chain — it carries the fonts and the fallback avatar the bundle references — but the shell itself is current the moment composer update finishes.
What a minor may do to you
Nothing — by contract. But two kinds of addition are worth a look, because they change what is possible rather than what works:
- A new
#[Access]or#[Act]on a shipped app. The ability is new, so nobody holds it yet, and the surface it guards is closed until you grant it. The changelog says so when it happens. - A new default binding. The SDK binds defaults with
bindIfor plainbind; your own binding in your own provider always wins. If a release adds a default for a port you already bound, you keep yours.
What @internal means for you
From 1.2.0 the SDK marks its machinery @internal — classes and interfaces that are implementation detail rather than contract. The marker changes no behaviour and breaks no code today.
What it changes is the promise: an @internal class may change or disappear in a minor. So it is worth one grep before an upgrade:
grep -rn 'LaravelUi5\\Sdk' app/ --include='*.php' | grep -vE 'Contracts|Attributes|Enums|Models|Exceptions'Anything that turns up wants checking against the release notes. The rule of thumb the marking follows: if a host names a class in config/ui5.php, it is public. Attributes, enums, models and most contracts and exceptions are public; resolvers, workers, controllers, producers and command classes are not. The exceptions to the folder rule are marked: the Sync and Help contracts, the Settings reader and writer interfaces and six Settings exceptions are @internal, so check the tag, not the folder.
What a major will look like
2.0.0 started a new line: it is installed fresh, not upgraded from 1.x. From there on, a major:
- gets its own migration notes, not a changelog bullet;
- is stopped by your
composer.jsonconstraint. A^2absorbs every minor and patch and excludes the next major, which is the point — a major is a deliberate, coordinated upgrade in every consumer, never somethingcomposer updatedoes to you on a Tuesday.
The same applies across the stack. laravelui5/core and laravelui5/odata are on strict SemVer too, and OData has already taken a major past 2.0.0; each one is its own decision.
From 2.x to 3.0
3.0.0 follows Core's majors — the version belongs to the module, and what the client renders is translated by its namespace — and adds what modules offer each other. Work through the list in order; php artisan ui5:doctor and php artisan ui5:describe --check find what is left.
1 — Composer. Require laravelui5/sdk ^3.0 and update with -W. The SDK brings the Core major it needs and laravelui5/sdk-db in the same version; a pin of your own on laravelui5/core has to move or go.
2 — The database. 3.0 changes the SDK's tables in its baseline: sdk_artifacts loses version, and every created_at / updated_at is DATETIME. There is no migration from a 2.x database — set the installation up again (migrate:fresh, ui5:intake, ui5:sync, ui5:tenant).
3 — The version belongs to the module. Take VERSION off every artifact — commands, jobs, units of work, dialogs, value helps, services — and declare it once on the module. A package with several modules lets the others refer to it:
public const string VERSION = BillingModule::VERSION;An artifact that still declares VERSION fails when the registry loads, naming the module whose version applies (Ui5Module). Ui5ArtifactInterface is gone: type against ArtifactInterface.
4 — Titles are literals. Write TITLE and DESCRIPTION as the English you mean, and translate them in the module's bundle under the namespace: rename actions.com.acme.billing.actions.add_group to com.acme.billing.actions.add_group, and the same for commands., jobs., units.. A dashboard group's header and a chart's header bind the namespace in the client, so they need the key too (Module Bundles; Core's core.W8 lists every missing one).
5 — Launch tiles name a capability alone. #[Launchpad('analytics_intelligence/data_management')] becomes #[Launchpad('data_management')]. #[Category(path:)] is a capability too, and only for a package without a launch tile. A module has at most one launch tile, and a module whose app carries #[ConceptEntry] exactly one (the rules).
6 — Settings sit on the trigger. A unit of work declares no setting; put it on the command's or job's declaration at EditLevel::Operator (settings on a command or a job); ui5:doctor reports a unit that declares one (sdk.W5).
7 — CI. ui5:describe reports and writes nothing; ui5:describe --check exits non-zero when the declarations are not valid. Give a package that ships a module the Composer type laravelui5-module.
New, nothing to change: released services — operations and services one module offers another, #[Uses], #[Call], #[ReadSurface] —, stored files at ui5/files/{ulid} with every read in the report log, and one Launchpad panel per capability. The OData changes come with laravelui5/odata: a discovered model is described by its table and its class, and the model attributes for single properties went (Model Discovery).
The SDK and its tables: one version
The SDK's tables ship in laravelui5/sdk-db, which the SDK requires. The two are released together, from one tag, under the same version: laravelui5/sdk 2.1.5 comes with laravelui5/sdk-db2.1.5. That is why the procedure above updates with -W.
SemVer applies to the pair, and for the tables the contract is the models:
- Major — a model's API changes, is renamed or goes.
- Minor — a new table, a new column, a new enum value.
- The tables behind the models are not a contract of their own. Read and write through the models, and a change to a table's internals reaches you as a minor or a patch, not as a break.
Version compatibility across the stack
The SDK declares what it needs and Composer enforces it. What that means in practice:
- You do not pin Core yourself. The SDK's own constraint on
laravelui5/coredecides which Core versions can be installed alongside it. Adding your own narrower pin is how you end up with an unsolvable dependency set. - Upgrade the SDK, and Core follows within the range the SDK allows.
- A Core major is an SDK release, because the SDK's constraint has to move first. If you want a new Core major, the question is which SDK version allows it.
Never take a version number from documentation — including this page. The authoritative sources are each package's CHANGELOG.md head and, for the public trio, the roadmap pills on laravelui5.com.
After the upgrade
Run the five-step smoke test. It takes two minutes and it exercises the registry, the shell bundle, the help output, the OData stack and the write path — which is exactly the set an upgrade touches.
If something is off, troubleshooting starts from the symptom.
Downgrading
Composer will let you. The database will not follow: ui5:sync has already reconciled it to the newer declarations, and reconciling deletes what the code no longer declares.
Treat a downgrade as a rollback — check out the older release, run the full chain against it, and remember that migrations are the part that does not reverse cleanly.