Skip to content
PatchTempo

GUIDE · LARAVEL

Laravel 12 end of support: what to do before 24 February 2027

Laravel 12 gets security fixes until 24 February 2027, and Laravel 11 already stopped getting them. Your app will keep running after that date, but new flaws in the framework will stay open. Here is how to check what you run and how to move to Laravel 13 one step at a time.

GuidesPublished 25 November 2026

What changes on 24 February 2027

Nothing breaks. Laravel 12 keeps running exactly as before. What stops is the stream of fixes: Laravel gives each major version bug fixes for 18 months and security fixes for 2 years, and for Laravel 12 that second period ends on 24 February 2027 (Laravel). A vulnerability found in the 12.x framework after that date will not be fixed in 12.x.

Laravel 12 is already in its last stage: its bug fixes ended on 13 August 2026, so only security fixes still come out until February.

The same policy also covers Laravel's own packages, with a catch: for additional libraries, only the latest major release receives bug fixes (Laravel). An app held back on an old major of a first-party package can be left behind before the framework is.

Nobody else patches it for you

Unlike PHP, which your Linux distribution may keep patching, Laravel is installed by Composer into your project's vendor folder. Running apt upgrade on the server does not touch it, and your host does not update it either.

Laravel's support policy lists no extended period after these dates (Laravel). The only way to keep getting framework fixes is to be on a supported version and to run composer update regularly.

Check what you run

Run these in the project folder on the server (or in the same release your server runs). The first two give the Laravel version, the third the PHP version it runs on, and the last one lists known security advisories in your installed packages:

php artisan --version
composer show laravel/framework
php -v
composer audit

php artisan about shows the Laravel and PHP versions together, with your environment and drivers (Laravel). composer audit checks your packages against security advisories and also flags abandoned packages (Composer).

Also look at the PHP constraint in composer.json and at the PHP version in your CI and Dockerfiles: they often lag behind the server.

Which version to move to

VersionPHP versionsSecurity fixes untilStatus today
Laravel 118.2 to 8.412 Mar 2026Ended. Upgrade now.
Laravel 128.2 to 8.524 Feb 2027Security fixes only, for three more months.
Laravel 138.3 to 8.517 Mar 2028The target. Bug fixes until Q3 2027.

Dates and PHP versions from the Laravel support table. A new major version comes out every year, around the first quarter, so plan for one upgrade a year.

PHP has its own dates. PHP 8.2 stops getting security fixes on 31 December 2026, PHP 8.3 at the end of 2027 and PHP 8.4 at the end of 2028 (php.net). Laravel 13 on PHP 8.4 or 8.5 covers you longest. PHP 8.6, released on 19 November 2026, is not yet in Laravel's table.

If your app runs Laravel 12 on PHP 8.2, PHP's deadline comes first: see our PHP 8.2 guide.

What usually breaks from 11 to 12

Laravel estimates this upgrade at 5 minutes (Laravel). That holds for the framework itself. The time goes into packages and tests:

  • Test tools. PHPUnit must move to version 11 and Pest to version 3.
  • Carbon 3 is required. Support for Carbon 2 is gone, so a package that still requires Carbon 2 blocks the upgrade.
  • UUIDs change format. Models using the HasUuids trait now get version 7 UUIDs. Use HasVersion4Uuids to keep the old format.
  • SVG is no longer an image. The image validation rule rejects SVG files unless you allow them explicitly.
  • Local disk path. If your config does not define a local disk, it now points to storage/app/private instead of storage/app, so code using the local disk reads and writes a different folder.

What usually breaks from 12 to 13

Laravel describes 13 as a relatively minor upgrade and estimates it at 10 minutes (Laravel). The changes most likely to matter:

  • PHP 8.3 minimum. Laravel 13 does not install on PHP 8.2.
  • Dependencies. PHPUnit 12, Pest 4 and Laravel Tinker 3 are required.
  • The CSRF middleware is renamed. VerifyCsrfToken becomes PreventRequestForgery and now also checks where a request comes from. The old name still works as a deprecated alias, but tests and routes that exclude it should use the new name.
  • Objects in the cache. The new cache setting serializable_classes defaults to false. An app that stores PHP objects in the cache must list the allowed classes.
  • Cache prefix and session cookie name. If your config relies on the framework's defaults, these names change, and existing sessions and cache entries are no longer found. Set CACHE_PREFIX, REDIS_PREFIX and SESSION_COOKIE to keep them.
  • Old helper packages. A new Symfony polyfill defines array_first() and array_last(), which can clash with the old laravel/helpers package. Use the Arr class instead.

Upgrade steps

  1. Get on the latest 12.x release first (or the latest 11.x if you are on 11), with every package updated, so you start from a clean base.
  2. Ask Composer what blocks the next version: composer why-not laravel/framework 13.0 names the packages holding you back (Composer). Check each one's changelog for a release that supports it.
  3. If you run PHP 8.2, move to PHP 8.3 or 8.4 on your current Laravel version first. Laravel 11 runs up to PHP 8.4 and Laravel 12 up to 8.5, so this is a separate, smaller step.
  4. Change one major version at a time: update composer.json as the upgrade guide says, run composer update, run the tests, fix, then do the next version.
  5. Compare your config files with the new skeleton, but think before copying: switching session serialization from php to json logs every user out.
  6. Deploy to staging, then to production in a quiet window, with the previous release ready to roll back. Watch the logs for a few days.

The upgrade guides also mention Shift, a community-maintained service that automates Laravel upgrades, and Laravel Boost, which gives AI coding assistants an upgrade command (Laravel). Either way, the tests and the review are still yours to do.

If you cannot upgrade in time

Keep it short and planned. Until 24 February 2027, stay on the latest 12.x release so you have every fix published up to then, and run composer audit on a schedule. Keep PHP on a supported version, which Laravel 12 allows up to PHP 8.5.

Reduce what is exposed: admin areas behind a VPN or an IP allowlist, unused packages removed, and APP_DEBUG set to false in production, which Laravel says should always be the case (Laravel). Then write down the date you will move to Laravel 13.

Questions

Will my app stop working on 24 February 2027?

No. Laravel 12 keeps running. It just stops receiving security fixes from the Laravel team.

Can I go straight from Laravel 11 to 13?

Do it in two steps: 11 to 12, test, then 12 to 13. Each official upgrade guide covers one major version, and a problem is much easier to find when only one thing changed. Both steps can go out in the same week.

Is updating PHP enough?

No. PHP and Laravel have separate support dates, and you need both on a supported version. On Laravel 12 with PHP 8.2, PHP's fixes stop first, on 31 December 2026 (php.net).

What about Laravel 10 or older?

Those versions are already out of support: Laravel 10's security fixes ended on 4 February 2025 (Laravel). The approach is the same, one major version at a time, but expect more to break on the way.

Can PatchTempo do the upgrade?

Yes. It is part of the one-off hardening upgrade: tried on a copy first, rolled out after your approval, with the previous version ready to switch back to. Start with the free audit.

Sources