← All notes
16 September 2026 · 2 min read LaravelBakımYükseltme

From Laravel 8 to 12: a step-by-step upgrade checklist

I upgraded a project that hadn't been touched in four years in four small steps instead of one big jump. The order I followed and what I checked at each step.

Bektaş Özçetin Full Stack Laravel Developer in X WA

A client's product management system was still running on Laravel 8 and PHP 7.4. The host was about to drop PHP 7.4 support, so upgrading wasn't optional.

Jumping straight to 12 is tempting, but it makes it nearly impossible to tell why things broke. I moved one major version at a time.

Before you start

  • No tests? Write some first. They don't need to cover everything; even 15–20 end-to-end tests for critical flows like login, placing an order and payment give you a lot of confidence.
  • List direct dependencies with composer outdated -D. Spotting abandoned packages early avoids surprises.
  • Do the upgrade on a separate branch and keep each step in its own commit.

The same loop for every version

  1. Bump laravel/framework and related packages to the next major version in composer.json.
  2. Work through the "high impact" items in the official upgrade guide one by one.
  3. Run the tests and fix what breaks.
  4. Deploy to staging and try the critical flows by hand too.

What took the most effort here

  • The PHP 8.1 move: some built-in functions started warning when given null. Static analysis (Larastan, level 5) found most of them in one pass.
  • Laravel 10: a few custom validation rules had to move to the new interface.
  • The Laravel 11 skeleton: switching to the new slim structure isn't required. I kept the old structure, made only the necessary changes and left that move for later.

Guard it with CI

- name: Tests
  run: php artisan test --parallel
- name: Static analysis
  run: vendor/bin/phpstan analyse

Running tests and static analysis on every commit shows the ground is solid before moving to the next version.

The result

The upgrade took four weeks, and users never noticed a single outage. With PHP 8.3 and Laravel 12, page response times improved by 22% on average. The project now has 140 tests, and the next upgrade is a matter of hours.

Need a hand with this? Let's look at your project together; the first call is free. Book a call