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: a major of the SDK brings the Core and OData majors it needs, and without -W Composer updates the SDK alone and fails to resolve. Coming from 3.4 or earlier, it is also what drops laravelui5/sdk-db, which the SDK replaces since 3.5.
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
Since
4.0the rule is the other way round: only a class marked@apiis promised; everything else is internal (From 3.x to 4.0). What follows describes the line before it.
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, until 3.4, 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).
From 3.x to 4.0
4.0.0 brings the inbox and keeps three promises earlier releases made for the next major. Work through the list in order.
1 — Composer. Require laravelui5/sdk ^4.0 and update with -W; Chiron moves to ^4.0 with it.
2 — The migrations are renamed. Every SDK migration is now one block, 2025_06_11_000001 … 000031, in the order it had; the tables do not change. A database that ran the old files records them under their old names, and the next php artisan migrate would run them again. Before any migrate, rename the recorded rows — one UPDATE migrations SET migration = '<new>' WHERE migration = '<old>' per row of the table in the changelog's [4.0.0], keeping the batch. A development database is simply rebuilt. After that, migrate creates the two new tables, sdk_work_items and sdk_work_item_runs.
3 — Only @api is promised. Since 3.5 the SDK marks what a module or a host may use with @api — the interfaces it binds, implements or calls, the attributes, the bases it extends, the types in their signatures. From 4.0 the rule binds: a class without @api is internal and may change in a minor. Models carry no mark; what a model releases is its #[ReadSurface]. Grep your code for SDK classes and check each against its docblock.
4 — ui5.audit.models is gone. #[Audited] on the model is all it takes: the SDK finds it in the roots of the modules in play and in app/ (The Audit). A key you still set is ignored — delete it. Keep an audited model in a module's root or in app/, never in a folder no module owns.
5 — One registry interface for the loadable data. MasterDataExtensionRegistryInterface is gone; masterDataExtensions() and extensionsOf() are on LoadableDataRegistryInterface. Type against that one.
6 — New, schedule it yourself: ui5:work-items reconciles the inbox with your rules (Work Items). The SDK does not schedule it.
The SDK and its tables: one package
The SDK's tables come with laravelui5/sdk itself: its migrations ship in the package and load from there, one migration per table. changed in 3.5Until 3.4 they shipped in a second package, laravelui5/sdk-db, released from the same tag under the same version. Since 3.5 the SDK replaces it: an update with -W drops laravelui5/sdk-db from your lock, and nothing should require it by name.
SemVer applies to the tables as to the code, 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.
- Major, too — a migration renamed: a database that ran it records the old name (From 3.x to 4.0).
- 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.