Upgrading Laravel and PHP without a big bang

Published 2026-11-06

Why upgrades get postponed

Framework upgrades are postponed because they feel like one large risky task. The longer you wait, the more versions pile up and the bigger the jump becomes, which makes the task even riskier. The way out is to make each upgrade small, rehearsed and reversible.

Rehearse on a template

If you run several applications built from a common skeleton, upgrade the skeleton first. It has no production data, so mistakes are free. Work through the official upgrade guide, fix the deprecations, run its tests and write down every surprise: renamed config keys, changed defaults, packages that lag behind.

That list is the real product. When you later upgrade the first real application, you are following your own notes instead of discovering problems under pressure.

Then one application at a time

Pick the least critical application next. Upgrade on a branch, run its tests, deploy to the development environment and exercise the main flows by hand. Only then promote to production, and wait a few days before starting the next application, so any slow-burning problem has time to show itself.

Resist the temptation to bundle other changes. An upgrade that also refactors a module makes every bug ambiguous: was it the framework or the refactor?

Language and dependencies

A PHP version bump and a framework bump are separate risks. Check that your hosting image provides the target PHP version and its extensions, and upgrade dependencies that the new version requires. Read the changelogs of packages that touch authentication, payments and encryption with particular care.

Pin versions with a lock file and commit it, so the environment you tested is the one you deploy.

Keep a way back

  • Take a database backup before the first deploy of the new version.
  • Keep the previous image tagged and available.
  • Make sure migrations introduced by the upgrade have a tested down().
  • Write the rollback command into the deploy notes before you start.

© 2026 The Good Fellas