What a Laravel 13 upgrade involves
A Laravel 13 upgrade is the process of moving an existing application from an older Laravel release to version 13 without breaking the features your staff and customers depend on. For most business systems, that means updating the framework, its packages, the PHP runtime and any custom code that relied on behaviour that has changed. Planned properly, it is a controlled project that usually runs in weeks, not a rushed fix after something fails.
This guide gives a practical migration plan for teams running Laravel applications such as ERPs, POS systems, booking platforms and client portals. It covers what to audit, how to build a safety net of tests, how to stage the work and how to roll out with a way back if something goes wrong.
Step 1: Audit the current application
Before changing any code, write down what you are running today. Most upgrade delays come from unknowns discovered halfway through the work.
- Current Laravel and PHP versions. Note the exact framework release and the PHP version on each server.
- Third-party packages. List every Composer package, its version and whether it is still maintained for the new release.
- Custom overrides. Identify code that extends framework internals, replaces core service providers or patches vendor files. These are the most fragile parts.
- Integrations. Payment gateways, SMS and email providers, shipping APIs, POS hardware connectors and accounting exports.
- Background work. Scheduled tasks, queue workers, webhooks and long-running jobs.
The output should be a short inventory document that the whole team can review. If a package has no release for the version you need, that is a decision to make now, not during the cutover.
Step 2: Read the upgrade path, not just the latest notes
The official Laravel upgrade guide lists the changes between each release. If your application is several versions behind, work through the guides in order rather than jumping straight to 13 and hoping the errors are obvious. Each step tends to change configuration files, helper behaviour, middleware or database defaults, and those changes stack.
Keep a simple change log for each version step. It helps when a bug appears a month later and someone needs to know which upgrade introduced it.
Step 3: Build a test safety net first
An upgrade without tests is a gamble. Before you touch the framework, make sure the critical paths are covered: login and permissions, invoice or order creation, payment callbacks, stock movements, and any report that finance relies on. Feature tests that exercise whole workflows are more useful for this than unit tests of small helpers. We covered the approach in our guide on testing strategy for Laravel teams.
Run the suite on the current version and make it green. Then run it again after each change. A failing test that existed before the upgrade tells you the test suite is incomplete, which is worth knowing early.
Step 4: Work in a branch and update dependencies in stages
Create a dedicated upgrade branch and resist the temptation to mix in new features. Update the framework and core packages first, then resolve the errors and deprecations they produce. Update the remaining packages in small groups so that you can tell which change caused a problem.
If a package is abandoned, decide early whether to replace it, fork it or remove the feature. Leaving it for last is how upgrades stall.
Step 5: Test on a staging copy with real-world data
A staging environment should match production as closely as possible: the same PHP version, web server setup, queue driver, scheduler and a recent copy of the database with personal data masked. Then test the workflows that matter most to the business.
- Place an order or create an invoice and confirm the totals, taxes and currency formatting.
- Trigger a payment and confirm the callback updates the record correctly.
- Run the scheduled jobs and check that queued emails and notifications are sent once, not twice.
- Check printed receipts, PDF exports and any reports that feed accounting.
- Confirm that APIs used by mobile apps or partners still return the same fields.
Step 6: Plan the rollout and the way back
The cutover needs a written plan. Agree on a maintenance window with the people who use the system, usually a low-activity period such as late evening or the start of a weekend. Then define the steps:
- Take a full database and file backup and confirm that it can be restored.
- Put the application into maintenance mode and deploy the new release.
- Run database migrations and clear and rebuild caches and configuration.
- Restart queue workers and check the scheduler.
- Run a short smoke test of the critical workflows on production.
- Keep the rollback procedure ready for the first 48 hours, and monitor errors and queue backlogs for at least two weeks.
Upgrade phases at a glance
| Phase | Main output | Typical owner |
|---|---|---|
| Audit | Inventory of versions, packages, overrides and integrations | Technical lead |
| Test safety net | Passing feature tests for critical workflows | Developers and QA |
| Dependency update | Upgrade branch with resolved errors and deprecations | Developers |
| Staging validation | Signed-off list of tested business workflows | Operations manager with developers |
| Rollout and monitoring | Production release, backups and monitoring report | Technical lead and vendor |
Common pitfalls to avoid
- Skipping versions. Jumping across several releases multiplies the number of changes to review at once.
- Forgetting background jobs. Scheduled tasks and queue workers often run outside the web request path, so a web-only test pass can miss them.
- Relying on cached configuration. Stale config or route caches can hide errors until the next deployment.
- Editing vendor files. Changes inside the vendor folder are lost on the next install and must be re-applied by hand.
- No rollback plan. If you cannot return to the previous release within an hour, the risk is too high for a live business system.
Doing it in-house or with a partner
A small application with good tests and few integrations can often be upgraded by an internal developer in a few weeks. Larger systems, especially those with payment gateways, POS hardware, multi-company accounting or many custom overrides, benefit from an experienced team that has done the same migration before. We applied this kind of planned upgrade to the version 2 release of our Narmar POS and ERP suite, which moved the platform to Laravel 13 alongside new modules.
If you run a Laravel system for inventory, accounting, sales or operations and want a realistic plan before committing, our team can audit the codebase and quote the work. Browse our ERP system service or full range of services, or contact us to share your application details.
Frequently asked questions
How long does a Laravel 13 upgrade take?
The time depends on how far behind the application is, how many packages and custom overrides it contains, and how much test coverage exists. A small application with good tests may take a few weeks, while a large multi-module system can take longer. The audit phase gives the most reliable estimate.
Can I upgrade Laravel without downtime?
Many upgrades can be done with a short maintenance window of under an hour, which is acceptable for most business systems. Zero-downtime deployments are possible but add infrastructure work, so decide whether the business truly needs them before planning.
Do I need to upgrade one version at a time?
Working through each version's upgrade guide in order is the safest route when your application is several releases behind. It makes each set of changes easier to review and test, and it reduces surprises from changed defaults.
Should I rewrite the application instead of upgrading it?
A rewrite is rarely the right choice for a working business system because it resets years of tested behaviour. Upgrading in planned stages usually costs less and carries less risk, unless the codebase is so tangled that the audit shows it cannot be maintained at all.



