Upgrading to Laravel 13: what actually breaks, and when Shift is enough
9 November 2026
Laravel 13 shipped on 17 March 2026. The official upgrade guide puts the estimated upgrade time at ten minutes, and for a well-kept Laravel 12 application that is about right. This post is about the applications where it is not, and how to tell which kind you have before you start.
The dates that matter
Laravel 12 stopped receiving bug fixes on 13 August 2026 and receives security fixes until 24 February 2027. Laravel 13 receives bug fixes until the third quarter of 2027 and security fixes until 17 March 2028. Every release gets the same shape: roughly 18 months of bug fixes and two years of security fixes, then nothing.
So an application on Laravel 12 today has a few months of security cover left. One on Laravel 11 or earlier has none, and the question is no longer whether to upgrade but in how many steps.
What Laravel 13 requires
The minimum PHP version is 8.3, with 8.3 to 8.5 supported. For a lot of applications the PHP step is the upgrade: the host has to offer it, the extensions have to exist for it, and the code has to survive its deprecations. Check that first, because no amount of Composer work gets around a server stuck on PHP 8.1.
The dependency changes are short: laravel/framework to ^13.0, laravel/tinker to ^3.0, laravel/boost to ^2.0 if you use it, phpunit/phpunit to ^12.0 and pestphp/pest to ^4.0. The test framework bumps are where older suites tend to complain first.
What actually breaks
The guide lists two high-impact changes beyond the dependencies, two medium ones and a dozen low ones. Here is what they mean in practice.
The CSRF middleware has a new name and a new check
VerifyCsrfToken becomes PreventRequestForgery, and the new middleware adds request-origin verification using the browser's Sec-Fetch-Site header. The old class names stay as deprecated aliases, so nothing fatals, but anything that references the class directly should move: withoutMiddleware([VerifyCsrfToken::class]) in tests is the usual one.
The origin check is the part to test rather than read about. If a browser posts to your application from another site, for example a form embedded on a partner's domain, run that flow on staging before you trust it in production.
Cached objects have to be allow-listed
The default cache configuration now sets serializable_classes to false. If your application caches PHP objects (a collection of models, a settings object, a DTO) you now list the classes that may be unserialised, or you change the cache to hold arrays. This is the change most likely to surface at runtime rather than in CI, because cached data is rarely what a test suite exercises.
upsert with an empty uniqueBy throws
On MySQL and MariaDB an upsert with an empty uniqueBy now throws an InvalidArgumentException instead of generating invalid SQL. A grep for upsert( finds every call in a minute.
The long tail
The low-impact list is where the obscure breakages live: cache prefixes and session cookie names (plan for a cold cache and fresh sessions on the first deploy), polymorphic pivot table name generation, pagination view names for Bootstrap, nullable class defaults in Container::call, Str factories reset between tests, and a conflict between Symfony's PHP 8.5 polyfill and any global array_first() or array_last() helpers you wrote yourself. As the guide says, only a portion of these will touch a given application. The work is finding out which portion, and that is what tests are for.
Where ten minutes becomes three weeks
None of the above is what makes an upgrade slow. What makes it slow is everything around the framework.
- No tests. Without a suite, the only way to know the upgrade worked is for customers to tell you it did not. Writing tests around the paths that matter comes before any version bump, and on an old application it is most of the job.
- Abandoned packages. A dependency with no release that allows Laravel 13 blocks Composer outright. Each one is replaced with a maintained package or a small amount of your own code, and each replacement needs a test.
- The PHP jump. An application on PHP 8.1 has two PHP versions of deprecations to work through, and the host has to be ready for the new one on the same day as the code.
- Several versions behind. Laravel 9 to 13 is four major upgrades, done one at a time with the application running at the end of each. There is no shortcut that skips versions safely.
- Custom authentication. Anything that predates the framework's own auth, or bends it, needs a careful read against the new request-forgery middleware.
When Shift is enough
Laravel Shift is a community-maintained service that automates the mechanical part of an upgrade, and the official guide recommends it. We use it ourselves as the first pass. It is the right tool when the application is on Laravel 12, the tests pass, the packages are maintained and PHP does not have to move. In that situation the guide's ten minutes is honest, and paying a developer to do it by hand is a waste of your money.
The first-party route in 2026 is Laravel Boost: with laravel/boost version 2 installed, the /upgrade-laravel-v13 command in Claude Code, Cursor or a similar tool runs the upgrade with an AI agent. It suits the same clean applications Shift does.
Neither tool writes the tests you do not have, replaces the package nobody maintains, or tells you that your host cannot run PHP 8.3. When one of those is true, the upgrade is a project, and it is better to know that before you start.
How we run one
Our Laravel upgrade service follows the same sequence every time. A fixed-price assessment first: versions, packages, PHP extensions, custom code and the host, written up with a fixed price for the upgrade itself. Tests before changes, so a break shows in CI rather than in production. One major version at a time. A staging release you can click through with your own data. Then production in a planned window with a rollback ready, and a quiet week of watching.
After that, the next major version is a step rather than a project, provided someone keeps applying the minor and security releases as they land. That is what a support and maintenance plan is for.
If you are not sure which kind of application you have, send us the repo and we will tell you.