Search Icon
image

Laravel 12 Released with New Features & Long-Term Support

Release & Approach

  • Laravel 12 was officially released on February 24, 2025.
  • This release emphasizes minimal breaking changes and focuses on maintenance, dependency updates, and developer experience enhancements.
  • As per the official release notes, Laravel 12 introduces new starter kits for React, Vue, and Livewire, built on modern frontend stacks (Inertia 2, TypeScript, shadcn/ui).
 

Major Features & Improvements in Laravel 12

Here’s a breakdown of the most notable features and changes in Laravel 12:

 

Feature / ChangeDescription & ImpactUpgrade Considerations
New Starter KitsOut-of-the-box starter scaffolding for React, Vue, and Livewire, including authentication, UI components, and integration with modern tooling.You can adopt these in new projects, or gradually migrate parts of your frontend stacks. They may not replace heavy custom setups immediately.
PHP Version Requirement & CompatibilityLaravel 12 requires PHP 8.2+.If your application is on older PHP versions, you must upgrade PHP first.
Concurrency & Result MappingThe Concurrency::run() method now returns results keyed by the original array keys, improving clarity when using async concurrent tasks.Minor adjustments may be needed in areas where you consumed the results as numeric arrays.
Container Class Dependency ResolutionThe service container now respects default values for class properties when resolving instances, giving more predictable behavior.If your code relied on fallback behaviour (resolving without defaults), review impacted classes.
Local Filesystem Default Path ChangedIf local disk isn’t explicitly configured, its root path now defaults to storage/app/private (instead of storage/app).Explicitly define your local disk path if you want legacy behavior.
Validation Rule: SVGs excluded by defaultThe image validation rule by default excludes SVG files. To allow SVGs, you must explicitly allow them: image:allow_svg or via File::image(allowSvg: true).If your app accepted SVG uploads before, you’ll need to adjust your validation rules.
Native Health ChecksLaravel 12 adds built-in health check routes to monitor application status (e.g. DB, cache, queues) without third-party packages.Useful for deployment/monitoring setups (Kubernetes, Docker) — you can customize which checks to expose.
Route Attributes (PHP 8+ attribute routing)You can now define routes by annotating controller methods using PHP attributes instead of relying purely on route files.This is optional and additive — route files continue to work, but attribute routing makes things more compact.
Improved Job Batching & Lifecycle EventsMore robust job batching with lifecycle callbacks, better monitoring and error-handling mechanisms in queued jobs.For apps with heavy background processing, take advantage of new features to simplify logic.
Support & Maintenance UpdatesLaravel 12 supports bug fixes until August 13, 2026, and security fixes until February 24, 2027.Plan your upgrade roadmap before that support window ends.
Other Minor Enhancements & Breaking Behavior Adjustments– Nested array request merging tweaks in mergeIfMissing()
– Image validation excludes SVGs (see above)
– Improved defaults in container resolution
– Some shifts in config or naming tweaks
– Emphasis on performance, updated dependencies
– Other small bugfixes and deprecations
Review upgrade guide to spot all low-impact changes and adjust accordingly.

Support Policy & Lifecycle

  • According to community sources and versioning pages, Laravel 12 is supported for bug fixes until August 13, 2026, and security fixes until February 24, 2027.
  • Laravel has adopted a non-LTS, yearly major version cadence, where each release receives a defined support window (18 months bug fixes and 2 years security fixes) unless designated LTS. 
  • Versioning site shows Laravel 12 supports PHP from 8.2 to 8.4. 

So Laravel 12 is not an LTS version in the traditional sense (unless specified later), but it has a decent support lifecycle. Applications should plan for upgrade before support ends.

Upgrade Path & Migration Strategies

Upgrade Guide Highlights (from official docs)

Some of the key changes worth checking when migrating:

  • Concurrency result index mapping changed.
  • Container class dependency resolution behavior changed in default property handling.
  • If your application used image validation assuming SVG support, you must explicitly allow SVGs. 
  • Local filesystem root path change for local disk default.
  • Some method behavior changes like mergeIfMissing() in handling nested dot-notation keys.

 

It’s advisable to run automated tests, check deprecations, and review upgrade diff comparisons in laravel/laravel repository.

Steps to Upgrade Safely
  • Ensure your app is running on PHP 8.2+ and all dependencies support 12.
  • Update composer.json to "laravel/framework": "^12.0" and run composer update.
  • Review the upgrade guide in Laravel’s documentation to catch all breaking or changed behaviors.
  • Run your test suite and fix failing tests.
  • Check configurations and environment variables line by line (some defaults may shift).
  • Deploy to staging, monitor logs and runtime behavior.
  • Use new features gradually; starter kits only for new modules or incremental adoption.

Why Start New Projects on Laravel 12?

  • You’ll get latest tooling, security, and developer experience improvements out of the box.
  • Starter kits reduce boilerplate to get frontend + backend working rapidly.
  • You remain within the support window and avoid having to upgrade soon again.
  • Future dependencies and ecosystem packages will prioritize compatibility with latest major versions.

Other Blogs

Frequently Asked Questions

Laravel 12 was released on February 24, 2025, continuing Laravel’s tradition of annual major version releases.

Laravel 12 requires PHP 8.2 or higher to support its modern syntax, performance improvements, and new native features.

No. Laravel 12 is not an LTS release. It will receive bug fixes until August 2026 and security updates until February 2027.

Some key new features include:

  • New Starter Kits for React, Vue, and Livewire.
  • Native Health Checks for system monitoring.
  • PHP Attribute Routing support.
  • Improved Job Batching & Queue Lifecycle Events.
  • Refined Concurrency API.

Laravel 12 focuses on dependency upgrades, smoother concurrency handling, and stricter validation defaults, with minimal breaking changes compared to Laravel 11.

Yes. The upgrade path is smooth if your app is already on PHP 8.2+. Follow the Laravel 12 Upgrade Guide and test your app before production deployment.

Laravel 12 will get bug fixes until August 13, 2026 and security fixes until February 24, 2027.

Laravel 12 introduces upgraded starter kits for:

  • React

  • Vue.js

  • Livewire
    These kits include authentication, frontend setup, and UI integration with modern tools like Inertia 2, TypeScript, and shadcn/ui.

Yes. The default local disk now points to storage/app/private instead of storage/app. You can override this in your config/filesystems.php.

image

Comprehensive Software Solutions Across Verticals

image

Marketplace

image

Education

image

E-commerce

image

data

image

Logistics

image

Innovation

we involves taking creative approaches to solve problems, improve processes, and meet the evolving needs of customers.

image

Quality-Focused

we delivering high-quality products or services to our customers.

image

Value for Money

we provide combination of cost, quality and sustainability to meet customer requirements. 

7 Responses

  1. Somebody essentially lend a hand to make significantly posts I might state That is the very first time I frequented your web page and up to now I surprised with the research you made to create this particular put up amazing Excellent job

Leave a Reply

Your email address will not be published. Required fields are marked *