Figma to WordPress for Agencies: How White-Label Block Theme Builds Work
If your agency designs in Figma and needs the build done by someone else, white-label Figma-to-WordPress development is the arrangement most teams land on: your...
Read article
If your product runs on a Laravel version that no longer receives security fixes, you are not alone. Plenty of SaaS platforms, internal tools and customer portals were built on Laravel 5, 6 or 8 and then left alone because they kept working. The problem shows up later: a hosting provider retires an old PHP version, a payment SDK drops support, a security advisory lands for a package you cannot update, or a new developer refuses to touch the codebase.
The short answer to "how do I upgrade an old Laravel app?" is this: audit first, add a safety net of tests, then move one major version at a time on a separate branch, upgrading PHP and third-party packages alongside the framework, and release behind a staged rollout with a rollback plan. For a typical small-to-mid-size application, that is usually a 2 to 10 week project. Very large or heavily customised codebases can take longer, and some apps are better served by a partial rebuild. This guide walks through how to decide, how the work is sequenced, what goes wrong, and what it typically costs.
Laravel ships a new major version roughly once a year. Each major release receives bug fixes for about 18 months and security fixes for about two years. Once a version falls outside that window, nobody is patching the framework for you. Being two or three majors behind is common, and the gap compounds: every year you wait adds another set of breaking changes, another PHP version to cross and another round of package updates.
The real business risks are usually not the framework itself but everything around it:
Before anyone opens a pull request, decide what kind of project this actually is. There are three realistic paths.
The application is reasonably structured, business logic lives mostly in Laravel conventions (controllers, models, jobs, policies) and the main problem is age. You move version by version and fix what breaks. This is the cheapest and fastest path and fits most apps that were built by a competent team and simply not maintained.
The app works but has trouble spots: abandoned packages that need replacing, a home-grown auth system, logic duplicated across controllers, or a front end built on an outdated stack. You upgrade the framework while rewriting the specific modules that block it. This is the most common real-world outcome.
Sometimes the honest answer is that the codebase is not worth carrying forward. Signs include almost no separation between logic and views, a heavily forked framework, dozens of abandoned dependencies, or a product whose requirements have changed so much that most screens would be redesigned anyway. Even then, a full big-bang rewrite is rarely the best option. A phased replacement, where new modules are built on a current Laravel version and old ones are retired gradually, is usually safer. We cover that approach in more depth in our guide to legacy application modernization without a risky rewrite.
| Situation | Usual path | Why |
|---|---|---|
| One or two majors behind, mostly standard Laravel code | Straight upgrade | Breaking changes are well documented and contained |
| Three or more majors behind, several abandoned packages | Upgrade plus targeted refactoring | Package replacement drives most of the effort |
| Forked framework core or logic mixed into views | Phased rebuild | Upgrading would mean rewriting most files anyway |
| Product direction has changed significantly | Phased rebuild with new scope | No point carrying forward screens you will replace |
An estimate without an audit is a guess. A proper upgrade audit for a small-to-mid-size app typically takes 2 to 5 working days and should produce a written report. Here is what it should cover.
The output should be a ranked list of blockers, a recommended path (upgrade, refactor or phased rebuild), and an estimate with a range rather than a single number.
Most outdated Laravel apps have little test coverage, and upgrading without tests means finding breakages in production. You do not need high coverage, just tests on the paths that matter.
A practical approach is to write feature tests for critical journeys before touching the framework:
Modern Laravel projects commonly use Pest or PHPUnit for this. If the app is very old, you may need to write tests against the older PHPUnit version first and then update the test syntax as you move forward. This step often accounts for 20% to 35% of the total upgrade effort, and it pays for itself many times over: the same tests protect every future release.
The safest route is one major version at a time. Jumping straight from Laravel 6 to the current release in one go sounds faster, but it mixes several years of breaking changes together, so when something fails you cannot tell which change caused it.
Each major step follows the same loop:
Automated tools such as Laravel Shift and Rector can apply many known changes for you. They are useful, but they will not decide what to do about an abandoned package or a custom override of a core class. That still needs a developer who understands the app.
Laravel 11 introduced a slimmer default application skeleton, with configuration moved into fewer files and some default directories removed. Upgraded applications do not have to migrate to this new structure. Laravel explicitly supports keeping the older layout. For most upgrades, we recommend leaving the structure alone and focusing on getting to a supported version safely. Restructuring can be a separate, optional piece of work later.
In practice, packages cause more upgrade work than the framework itself. For every dependency, you will land in one of four buckets:
Pay special attention to payments, authentication and file storage. Test these against sandbox accounts, not just with unit tests, because a small change in webhook or token handling can break revenue or lock users out.
Framework upgrades usually do not require schema changes, but there are a few places that catch teams out:
An upgrade should never go straight from a developer's machine to production. A sensible release plan looks like this:
| Risk | What it looks like | How to reduce it |
|---|---|---|
| Hidden custom code | Core classes overridden in service providers, surprising behaviour after upgrade | Search for overrides and macros during the audit; test those areas explicitly |
| Abandoned packages | Composer cannot resolve dependencies at a certain version | Identify replacements in the audit; budget for them separately |
| Silent API changes | Mobile app or partner integration breaks because a date or number format changed | Snapshot-test key API responses before and after |
| Scope creep | "While we are in there" feature requests mixed into upgrade work | Keep a separate backlog; ship the upgrade first |
| Long-lived branch drift | Feature work continues on main and the upgrade branch falls behind | Merge main into the upgrade branch frequently, or pause feature work for short periods |
| Environment mismatch | Works on staging, fails in production | Match PHP, extensions and database versions exactly; use the same deploy script |
Timelines depend on the version gap, codebase size, test coverage and package health. These are typical ranges for planning, not quotes:
| Application profile | Typical timeline |
|---|---|
| Small app, one major version behind, healthy packages | 1 to 2 weeks |
| Small-to-mid app, two or three majors behind, few tests | 3 to 6 weeks |
| Mid-size SaaS, four or more majors behind, several abandoned packages | 6 to 12 weeks |
| Large platform with custom framework changes or a large SPA front end | 3 months or more, usually phased |
These ranges include the audit, tests, upgrading, package replacement, staging and release, but not new features or a front-end rewrite.
Cost follows effort, so the same factors apply. As a rough guide, using typical agency rates:
Rates vary a lot by region and team model, so treat these as orientation only. For a quick, rough number based on your own project, try our project cost estimator, then use the audit to firm it up.
After a proper audit, a fixed price for the upgrade itself is reasonable, because the scope is well defined. Without an audit, fixed prices tend to be padded to cover unknowns, or they lead to disputes when surprises appear. A common and fair structure is a small fixed-price audit followed by a fixed-price or capped upgrade phase, with any optional refactoring estimated separately.
The most expensive upgrades are the ones that were postponed for years. Once you are on a supported version, staying there is far cheaper than catching up again. A simple maintenance rhythm looks like this:
Many teams handle this through a small monthly retainer with their development partner rather than as one-off projects. It keeps the knowledge in one place and makes each annual upgrade a routine task rather than a crisis. If you are weighing that model, our article on agency retainers for ongoing product development explains when it makes sense.
If you are hiring outside help, these questions separate experienced teams from those who will learn on your codebase:
Good answers are specific and backed by a written process. "We'll run the upgrade tool and fix what breaks" is a warning sign.
At SquartUp, Laravel product engineering is a core part of what we do, alongside WordPress and WooCommerce work for agencies. Across 50+ projects for 25+ clients in 12+ countries, we have learned that the upgrade itself is rarely the hard part. The hard part is the surprises, so we put the effort into finding them early.
Our process follows the steps in this guide: a short written audit with a ranked list of blockers and an estimate range, a test safety net around your critical journeys, version-by-version upgrades on a dedicated branch, package replacement where needed, and a staged release with a rollback plan. We keep the existing application structure unless there is a clear reason to change it, and we keep new feature requests on a separate list so the upgrade ships cleanly. After release, SquartUp can stay on as your ongoing maintenance team or hand over to your developers with documentation.
You can try, but it is riskier. Moving one major at a time keeps each set of breaking changes small and makes failures easy to trace. For small, clean apps, an experienced developer may combine steps, but the default should be one at a time.
If it is done well, mostly not. Users may be logged out once if session handling changes, and you might notice performance improvements from a newer PHP version. Anything more visible usually means scope crept in.
Not entirely, but it helps to slow it down. Frequent merges from the main branch keep the upgrade branch current. For the final week before release, a short freeze on risky changes makes testing much more reliable.
If your Laravel application is falling behind, the best first move is a clear picture of where it stands. Tell us your current Laravel and PHP versions, roughly how large the app is and what it does for your business, and we will tell you which path makes sense. Contact SquartUp to request a Laravel upgrade audit and a realistic estimate.
Tell us about your project. We will scope it honestly, propose a clear timeline, and show you how we have helped companies like yours ship faster.