Laravel 12 and Laravel 13: Complete Guide to the Latest Updates, Features, and What’s New in 2025

Laravel remains the most popular PHP framework in the world, and 2025 has been one of its most exciting years yet. With the release of Laravel 12 and the upcoming Laravel 13, the framework has taken massive steps forward — introducing AI-native development tools, new starter kits, improved performance, and a brand new cloud deployment platform.

Whether you are a beginner just starting out or an experienced developer managing production applications, this guide covers everything you need to know about the latest Laravel updates in 2025.


What Is Laravel 12 and When Was It Released?

Laravel 12 was released in early 2025 as the latest major version of the framework. Following Laravel’s annual release cadence, this version focused heavily on developer experience, performance improvements, and ecosystem modernization.

Unlike some previous major releases, Laravel 12 was intentionally designed as a relatively smooth upgrade. According to the official Laravel documentation, most applications can upgrade to Laravel 12 without changing any application code — making the transition faster and less risky than ever before.


Top New Features in Laravel 12

1. Brand New Starter Kits for React, Vue, Svelte, and Livewire

One of the biggest changes in Laravel 12 is the introduction of official starter kits for four modern frontend stacks:

  • React
  • Vue
  • Svelte
  • Livewire

These starter kits replace Laravel Breeze and Laravel Jetstream, both of which will no longer receive additional updates. The new kits provide a modern, opinionated starting point for new Laravel applications.

The WorkOS AuthKit variant of these starter kits adds enterprise-grade authentication features out of the box, including:

  • Social authentication (Google, GitHub, etc.)
  • Passkey support
  • Single Sign-On (SSO)

This makes Laravel 12 an excellent choice for building SaaS applications and enterprise-level products.


2. Route Attributes Using PHP 8 Annotations

Laravel 12 introduces support for route attributes using PHP 8+ annotations. This means you can now define routes directly above your controller methods instead of registering them in separate route files.

use Illuminate\Routing\Attributes\Route;

class UserController extends Controller
{
    #[Route('/users', methods: ['GET'], name: 'users.index')]
    public function index()
    {
        return view('users.index');
    }
}

This approach keeps your code organized, reduces repetition, and makes it easier to understand which URL maps to which controller action — especially in large, modular applications.


3. Native Health Check Endpoints

Laravel 12 includes built-in health check endpoints — no extra packages or custom code required. This is especially useful for teams deploying with Docker, Kubernetes, or any container orchestration platform.

You can now expose system status through default routes that check:

  • Database connectivity
  • Cache availability
  • Queue readiness

This eliminates the need for custom health monitoring logic and improves deployment confidence significantly.


4. Improved Job Batching

Background job processing got a major upgrade in Laravel 12. The new job batching system allows developers to:

  • Monitor the progress of batched jobs
  • Detect partial failures within a batch
  • Trigger callbacks when a batch completes or fails

This improvement is critical for applications that process large amounts of data in the background, such as email campaigns, report generation, or data imports.


5. AsUri Model Cast

Laravel 12.17.0 introduced the AsUri cast for Eloquent models, making it clean and simple to handle URL and URI values in your database models.

use Illuminate\Database\Eloquent\Casts\AsUri;

class Website extends Model
{
    protected $casts = [
        'homepage' => AsUri::class,
    ];
}

$website = Website::create(['homepage' => 'https://example.com']);
$uri = $website->homepage; // Returns a proper URI object

This eliminates the need for manual URL parsing and keeps your model layer clean.


6. Contextual Binding with PHP 8 Attributes

Dependency injection in Laravel 12 is now more powerful with contextual attribute binding. This allows you to inject specific implementations based on context — directly using PHP attributes instead of complex service provider bindings.

#[ContextualAttribute]
class PaymentProcessor
{
    public function __construct(
        #[For(StripeService::class)]
        PaymentGateway $gateway
    ) {
        // Automatically injects StripeService when needed
    }
}

7. More Expressive Query Builder Methods

The reorderDesc() method has been added to make query ordering more readable and expressive:

// Before
$users = User::orderBy('created_at', 'desc')->get();

// Now — cleaner and more expressive
$users = User::reorderDesc('created_at')->get();

Small improvements like this add up to a noticeably more pleasant development experience over time.


8. Improved Scheduler with daysOfMonth() API

The November 2025 update for Laravel 12.x brought a new daysOfMonth() method for the task scheduler. This makes it easy to run scheduled tasks on specific calendar dates without additional conditional logic.

$schedule->command('report:generate')
    ->daysOfMonth(1, 10, 20)
    ->at('02:00');

This is perfect for monthly billing systems, scheduled reports, and invoice automation.


Laravel Cloud: The Official Deployment Platform

One of the most exciting announcements of 2025 is Laravel Cloud — the official, fully managed deployment platform built specifically for Laravel applications.

Laravel Cloud is now officially available and offers:

  • Autoscaling based on traffic and queue load
  • Queue Clusters — a dedicated cluster type for managing Laravel queues that auto-scales replicas automatically
  • Zero-downtime deployments out of the box
  • Preview Environments for testing branches before merging
  • Custom domains on all plans including the free tier

Laravel Cloud Pricing Plans

PlanPriceKey Features
Starter (formerly Sandbox)FreeCustom domains, hibernation enabled
Growth (formerly Production)$20/monthQueue clusters, Preview Environments, Pro Compute
BusinessCustomHigh-performance tiers, advanced networking, compliance

Laravel Cloud removes the complexity of managing servers and infrastructure, allowing developers to focus entirely on writing code.


Laravel AI Features: Laravel Boost and the MCP SDK

2025 marks Laravel’s official entry into AI-native development. Laravel 12 introduces two major first-party AI packages:

Laravel Boost

Laravel Boost is an AI-powered development assistant that includes:

  • Versioned Laravel documentation access
  • Laravel-curated AI rules and guidelines
  • Integration with the Model Context Protocol (MCP) SDK

Boost makes it dramatically easier to set up AI-powered features in your Laravel applications.

Automatic Provider Failover in Laravel AI

The AI SDK now supports automatic provider failover. When an AI provider runs out of credits, hits a quota limit, or returns a billing error, Laravel automatically switches to the next configured provider — with no code changes required.

This works across all major providers:

  • OpenAI
  • Anthropic
  • OpenRouter
  • DeepSeek

What Is New in Laravel 13?

Laravel 13 is the upcoming major release and already shows significant changes in its changelog. Here is what developers can expect:

1. First-Party Laravel AI SDK

Laravel 13 introduces a unified AI SDK that provides a single, consistent API for:

  • Text generation
  • Tool-calling agents
  • Embeddings
  • Audio generation
  • Image generation
  • Vector store integrations

The SDK is provider-agnostic, meaning you can switch between AI providers without changing your application code.

use App\Ai\Agents\SalesCoach;

$response = SalesCoach::make()->prompt('Analyze this sales transcript...');

return (string) $response;

2. JSON:API Resources

Laravel 13 brings built-in support for JSON:API compliant responses, making it easier to build standardized APIs that follow the widely adopted JSON:API specification.

3. Inertia v3 with useHttp Hook

The new useHttp hook in Inertia v3 provides useForm-like functionality for HTTP requests outside of Inertia’s page lifecycle. It supports:

  • Reactive state management
  • Error handling
  • File upload progress tracking
  • Request cancellation
  • Optimistic updates

4. Removal of Axios Dependency

Laravel 13 removes Axios and qs as frontend dependencies entirely. A lighter, built-in XHR client now handles all HTTP communication — reducing bundle size and improving front-end performance.

5. Semantic and Vector Search

Laravel 13 adds native semantic search and vector search capabilities, making it straightforward to build AI-powered search features into your application.

6. Out-of-the-Box Teams Feature

All starter kits in Laravel 13 now include a Teams feature with complete UI screens for:

  • Creating teams
  • Switching between teams
  • Inviting members
  • Updating team details

This makes building multi-tenant SaaS products significantly faster.


Laravel 12 vs Laravel 11: Key Differences

FeatureLaravel 11Laravel 12
Starter KitsBreeze, JetstreamReact, Vue, Svelte, Livewire
Route AttributesNot supportedPHP 8 attribute-based routing
Native Health ChecksRequires packageBuilt-in
Job BatchingBasicEnhanced with callbacks
AI ToolsNoneLaravel Boost + MCP SDK
Cloud PlatformNone (third-party)Laravel Cloud (official)
AsUri CastNot availableAvailable in 12.17.0+

How to Upgrade to Laravel 12

Upgrading to Laravel 12 is smoother than previous major upgrades. Here are the key steps:

  1. Update your composer.json — Change the Laravel framework version constraint to ^12.0.
  2. Check PHP version — Laravel 12 requires PHP 8.2 or higher.
  3. Review breaking changes — Check the official upgrade guide for any changes affecting routes, middleware, or queue configurations.
  4. Update Carbon — Laravel 12 requires Carbon 3, while Laravel 10 and 11 used Carbon 2.
  5. Test in staging — Always test your full application in a staging environment before deploying to production.
  6. Update cache tags if using Redis — From Laravel 12.30.0, enhanced Redis cache tag handling may affect existing cached data.

Most standard Laravel applications can complete this upgrade in a few hours.


Why Laravel Continues to Lead in 2025

Laravel’s dominance in the PHP ecosystem is no accident. Here is why developers continue to choose it over the competition:

  • Active development — Regular weekly and monthly releases with real improvements
  • Strong ecosystem — First-party tools like Laravel Cloud, Forge, Nova, and Horizon
  • AI-first mindset — One of the first major PHP frameworks to introduce official AI tooling
  • Community support — Millions of developers worldwide on Discord, forums, and GitHub
  • Financial stability — The framework is backed by significant investment, ensuring its long-term future
  • PHP 8.2+ optimizations — Takes full advantage of modern PHP performance improvements

Conclusion

Laravel 12 and the upcoming Laravel 13 represent a major leap forward for PHP web development. From brand new starter kits and AI-native tooling to Laravel Cloud and improved developer APIs, the framework has never been more powerful or more enjoyable to use.

If you are still running an older version of Laravel, now is the perfect time to upgrade. The process is smoother than ever, and the features you gain are well worth the investment.

Whether you are building a startup, a SaaS platform, or an enterprise application, Laravel in 2025 gives you everything you need to build fast, scalable, and maintainable web applications.


Last Updated: April 2026 | Based on Laravel 12.x and Laravel 13 Changelog

Leave a Comment

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

Scroll to Top