If you tried to set up a Laravel 11 project recently, you may have met a wall you did not expect: Composer refusing to install the framework at all. Not a version conflict, not a missing extension — a flat refusal, with a list of security advisory IDs.

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

This is not a bug in your project. It is Composer doing exactly what it was told to do since version 2.9: skip any package version with an open security advisory. And because Laravel 11 reached end of life on 12 March 2026, its advisories will never be fixed in an 11.x release. Every 11.x version is blocked, permanently.

What is actually wrong with Laravel 11: Running composer audit on the last 11.x release reports five advisories. The worst is a critical TokenGuard authentication bypass. There are also CRLF injection issues in the email rule and an XSS in the debug page. None of these have a patched 11.x version — the fixes exist only in Laravel 12 and 13.

The upgrade is two small steps, not one big leap. The instinct is to jump straight from 11 to 13. Resist it. Upgrading one major at a time means each failure has exactly one suspect, and the 11-to-12 step is genuinely quick. Before anything else, check the one thing that actually blocks most people: PHP. Laravel 13 needs PHP 8.3 or newer, and Laravel 11 ran happily on 8.2. Upgrade PHP first, as its own change, and live with it for a few days before touching the framework. Run: php -v; git checkout -b upgrade/laravel-13; mysqldump -u your_user -p your_database > backup-before-upgrade.sql; composer update laravel/framework --with-all-dependencies. Then the first jump: composer require -W laravel/framework:^12.0; php artisan config:clear; php artisan cache:clear; php artisan test. Commit that step on its own.

The second jump, and the package that breaks it: composer require -W laravel/framework:^13.0 fails, complaining that laravel/tinker is locked at v2.11.1. Laravel 13 needs 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: composer require -W laravel/framework:^13.0 laravel/tinker:^3.0. If you use PHPUnit or Pest, bump those too — Laravel 13 pairs with PHPUnit 12 and Pest 4. Then list your first-party packages and check each one: composer show laravel/* --direct. Update the PHP constraint in composer.json to ^8.3 as well.

Verify before you call it done: clear every cache — php artisan config:clear, cache:clear, route:clear, view:clear, then php artisan about (the fastest single health check), run the tests, click through login and your main forms, and restart queue workers (php artisan queue:restart) — a worker keeps the old framework in memory until it restarts. Read both the Laravel 12 and Laravel 13 upgrade guides in full, because skipping a major means the 12 changes apply to you too.

The escape hatch you should not ship with: composer config audit.block-insecure false switches Composer's block off. Use it only as a bandage — production is down and you must install the locked version right now. Remove it the moment the upgrade is done: composer config --unset audit.block-insecure.

Why 13 and not 12: Laravel 12's security fixes end on 24 February 2027. Laravel 13 is supported with security fixes until 17 March 2028.

Full step-by-step version of this upgrade — every command, the tinker conflict, the verification checklist and the answers to the questions people ask most — here: https://rajadevsolutions.online/blog/how-to-upgrade-laravel-11-to-laravel-13

If you are still on 11, the Composer error is your deadline. The upgrade itself takes about ten minutes plus testing. The PHP upgrade is the part that takes real time, so do that first and separately.