If your project is still running on Laravel 11, the upgrade is no longer something you can put off. Security fixes for Laravel 11 ended on 12 March 2026, and since Composer 2.9 the installer refuses to install any Laravel 11 version at all, because every release carries open security advisories. A fresh composer install on a Laravel 11 project — or even adding a single package — now fails before it starts.
The good news is that the upgrade itself is small. Laravel 12 and Laravel 13 were both deliberately minor releases, and the official upgrade guide estimates about ten minutes for a typical application. The real work is in the preparation: the PHP version, the packages, and the one dependency conflict that catches almost everyone on the second jump. This tutorial covers the whole path in the order that keeps problems easy to find.
Why upgrade now, and why go straight to 13
Laravel 11 is end of life: no bug fixes since September 2025 and no security fixes since March 2026. Running composer audit on the last 11.x release reports five advisories, including a critical TokenGuard authentication bypass. Those advisories will never be fixed in an 11.x release, which is exactly why Composer blocks the install.
Going to Laravel 12 only is a short-term fix. Bug fixes for Laravel 12 ended on 13 August 2026 and its security fixes end on 24 February 2027. Laravel 13, released in March 2026, receives security fixes until 17 March 2028. If you are doing the upgrade work anyway, skip the intermediate stop and land on 13.
Before you start: the checklist
Do these four things before touching composer.json. They take a few minutes and they are what turns a broken upgrade into a reversible one.
1. Check your PHP version. Laravel 13 needs PHP 8.3 or newer. Laravel 11 ran on PHP 8.2, so this is the step most likely to change your timeline:
php -v
If you are on PHP 8.2, upgrade PHP first, deploy that change on its own, and live with it for a few days before touching the framework. Bundling a language upgrade and a framework upgrade into one change means debugging two kinds of failure at once with no way to tell them apart.
2. Commit everything and branch. You want a clean rollback point:
git status
git checkout -b upgrade/laravel-13
3. Back up the database. A migration that runs halfway and fails is much easier to recover from with a dump in hand:
mysqldump -u your_user -p your_database > backup-before-upgrade.sql
4. Update to the latest Laravel 11 patch first. Get to the final 11.x release while you are still on 11, so you are not debugging old bugs during the jump:
composer update laravel/framework --with-all-dependencies
php artisan --version
Step 1: Upgrade Laravel 11 to Laravel 12
Laravel 12 was a deliberately small release, and on a standard project this step really is one command:
composer require -W laravel/framework:^12.0
The -W flag (short for --with-all-dependencies) lets Composer update locked packages that depend on the framework, which is what you want here — without it, the resolver often gives up on the first conflict it meets.
After the update, read the official Laravel 12 upgrade guide and apply the items that match your project. The ones that affect the most applications are the move to Carbon 3 and a few changed validation defaults around UUIDs and images. Then clear the caches and confirm the application boots:
php artisan config:clear
php artisan cache:clear
php artisan --version
php artisan test
If the tests pass, commit this step on its own. Two small commits are far easier to review — and to roll back — than one big one.
Step 2: Upgrade Laravel 12 to Laravel 13
Now the second jump. The command looks the same, but this time it will probably fail:
composer require -W laravel/framework:^13.0
The error mentions laravel/tinker:
- laravel/tinker is locked to version v2.11.1 and an update of this package
was not requested.
Laravel 13 needs laravel/tinker version 3, but Composer will not upgrade a package you did not ask for. The fix is to bump it in the same command, along with the other first-party packages that moved to new major versions in Laravel 13:
composer require -W laravel/framework:^13.0 laravel/tinker:^3.0
If your project also uses PHPUnit or Pest, bump those too — Laravel 13 pairs with PHPUnit 12 and Pest 4:
composer require --dev phpunit/phpunit:^12.0 pestphp/pest:^4.0
Also update the remaining first-party packages to their 13-compatible versions. List what you have first, so nothing is missed:
composer show laravel/* --direct
Check each one against the Laravel 13 upgrade guide — Sanctum, Passport, Cashier, Scout, Horizon and the others each publish their own compatibility version, and a single package pinned to an old major is the most common reason a composer update refuses to resolve.
Finally, update composer.json itself so the constraints match what you just installed. The key lines for a Laravel 13 project look like this:
"require": {
"php": "^8.3",
"laravel/framework": "^13.0",
"laravel/tinker": "^3.0"
}
Note the PHP line: ^8.3 is now the minimum. If your composer.json still says ^8.2, Composer will happily resolve a set of packages that cannot run on your server.
Step 3: Clear caches and verify the application boots
Old cached configuration is the most common cause of a "successful" upgrade that still shows errors. Clear everything, then ask Laravel to report on itself:
php artisan config:clear
php artisan cache:clear
php artisan route:clear
php artisan view:clear
php artisan about
php artisan about is the fastest single check: if the framework, the database drivers and the cache all come up clean, the application is healthy. Then run the full test suite and click through the important pages yourself — login, the main forms, and any page that talks to an external API:
php artisan test
If you use queued jobs, restart the workers too. A queue worker keeps the old framework code in memory until it is restarted, so it will keep running Laravel 12 code after the rest of the application has moved on:
php artisan queue:restart
Step 4: Read the official upgrade guides, both of them
Skipping a major version means the Laravel 12 changes apply to you as well, and they are not repeated in the Laravel 13 notes. Read both guides in full before you call the upgrade done, and apply every change marked "Likelihood of impact: High". The Laravel 13 guide also documents request forgery protection changes and a new cache serializable_classes setting. If you sync your configuration files with the Laravel 13 skeleton, note that changing the session serializer from php to json invalidates all active user sessions.
The Composer block, and the escape hatch you should avoid
When Composer refuses to install Laravel 11, the error looks like this:
Root composer.json requires laravel/framework ^11.31, found
laravel/framework[v11.31.0, ..., v11.57.1] but these were not loaded,
because they are affected by security advisories
There is a setting that turns the block off:
composer config audit.block-insecure false
Use it only as a bandage — for example, if production is down and you must install the locked Laravel 11 version right now to restore service. It hides real, known vulnerabilities, including the critical authentication bypass. Remove it as soon as the upgrade is done:
composer config --unset audit.block-insecure
Frequently asked questions
Can I upgrade directly from Laravel 11 to 13 in one step? Technically Composer can resolve it, but do not. Upgrading one major at a time means each failure has exactly one suspect. The 11-to-12 step is quick; the time you save by skipping it is less than the time you lose debugging a combined jump.
How long does the upgrade take? On a standard project with the PHP upgrade already done, the framework changes take about ten minutes plus testing time. The PHP 8.3 upgrade is the part that can turn into a longer job, which is why it belongs in its own change.
What breaks most often?
First-party packages with narrow version constraints — laravel/tinker above all — and configuration cached before the upgrade. After that, third-party packages that have not released a Laravel 13 compatible version yet; check each one with composer why-not before you start.
Wrapping up
Upgrading from Laravel 11 to Laravel 13 is two small steps, not one big leap: update PHP to 8.3 first, move 11 to 12 and commit, then move 12 to 13 with laravel/tinker bumped to version 3 in the same command. Clear the caches, run the tests, read both upgrade guides, and leave Composer's security block switched on. Your application ends up on a supported release with security fixes until March 2028.