LaravelApril 15, 2026

What's New in Laravel 12: Complete Guide

Laravel 12 brings significant improvements including better performance, new Artisan commands, and enhanced security features.

What's New in Laravel 12: Complete Guide

Laravel 12 represents a major milestone in the framework’s evolution. This release focuses on developer experience, performance optimizations, and introduces several groundbreaking features that will change how we build web applications.

Key Highlights

1. Enhanced Performance

Laravel 12 introduces lazy loading optimizations and query caching improvements that can boost your application’s performance by up to 40%.

2. New Artisan Commands

The new php artisan make:action command streamlines the creation of action classes, promoting single responsibility principle.

3. Improved Type Safety

Better PHP 8.3 integration with improved type hints and return types across the framework.

php
// New Action class pattern
class CreateUserAction
{
    public function execute(array $data): User
    {
        return User::create($data);
    }
}

Migration Guide

Upgrading from Laravel 11 to 12 is straightforward. Most applications won’t require any code changes.