Laravel 13 has officially landed, introducing first-party AI primitives, native JSON:API resources, semantic vector search, queue routing, and expanded attribute configuration. Here is the definitive overview of what has changed, how it impacts your stack, and how to upgrade.
The annual release of Laravel 13 on March 17, 2026 marks a major milestone for backend developer operations. Rather than delivering breaking changes, the core team focused heavily on quality-of-life improvements, making the transition from Laravel 12 incredibly smooth while providing deep, framework-level support for modern web workloads.
Laravel 13 Release Timeline and Support Policy
Laravel follows a yearly release cadence, aligned with Semantic Versioning. As documented in the official release lifecycle rules:
| Version | PHP Version | Release Date | Bug Fixes Until | Security Patches |
|---|---|---|---|---|
| Laravel 11 | 8.2 - 8.4 | March 12, 2024 | Sep 3, 2025 | March 12, 2026 |
| Laravel 12 | 8.2 - 8.5 | Feb 24, 2025 | Aug 13, 2026 | Feb 24, 2027 |
| Laravel 13 | 8.3 - 8.5 | March 17, 2026 | Q3 2027 | March 17, 2028 |
Laravel 13 vs Laravel 12: Feature Matrix
The table below tracks key updates showing how Laravel 13 addresses standard architectural issues compared to its predecessor:
| Feature Area | Laravel 12 | Laravel 13 |
|---|---|---|
| AI Capabilities | Required third-party packages or direct integrations. | First-party AI SDK with agent and media abstractions. |
| Semantic Vector Queries | Custom raw SQL or external database drivers required. | Built-in query methods matching pgvector. |
| API Formatting | Default Eloquent API Resources only. | Built-in JSON:API specification resources. |
| Queue Configurations | Connections defined inside individual Job classes. | Centralized queue routing rules using Queue::route. |
New Feature: First-Party AI SDK
The Laravel AI SDK provides a clean, unified API for integrating LLMs and generative pipelines into your codebase. You can easily prompt agents, generate vector embeddings, synth audio, or compile media outputs:
Prompting an Agent
use App\Ai\Agents\SalesCoach;
$response = SalesCoach::make()->prompt('Analyze customer feedback logs...');
return (string) $response;Generating Embeddings
use Illuminate\Support\Str;
$embeddings = Str::of('Multi-tenant SaaS architecture security practices')->toEmbeddings();New Feature: Semantic / Vector Search
Instead of deploying separate vector database instances to handle embeddings, Laravel 13 integrates semantic similarity directly into your PostgreSQL setup using the pgvector extension. By combining the AI SDK with Eloquent, you can run high-dimensional similarity searches within your existing queries:
use Illuminate\Support\Facades\DB;
$results = DB::table('knowledge_base')
->whereVectorSimilarTo('embedding', 'database caching best practices')
->limit(5)
->get();New Feature: Native JSON:API Compliant Serialization
Laravel 13 introduces native JSON:API resources, providing standard response wrappers matching the JSON:API specifications. This simplifies integration for frontend clients and API consumer apps, offering native support for relationship inclusions, sparse fieldsets, and automated headers out of the box.
New Feature: Centralized Queue Routing
Rather than configuring connections and queues individually inside each Job class, Laravel 13 allows centralizing queue routes inside your App Service Providers.
use Illuminate\Support\Facades\Queue;
Queue::route(ProcessUpload::class, connection: 'redis', queue: 'media');New Feature: Expanded PHP Attributes
Common routing, middleware, policy, and retry concerns are now configured colocated with methods using attributes:
#[Middleware('auth')]
class CommentController
{
#[Middleware('subscribed')]
#[Authorize('create', [Comment::class, 'post'])]
public function store(Post $post) { /* ... */ }
}Breaking Changes and Upgrade
The typical Laravel 13 upgrade takes roughly 10 minutes. The primary requirements include bumping PHP to version 8.3+, upgrading package dependencies in your composer.json, and registering the new PreventRequestForgery CSRF class in your middleware kernel stack.
Upgrade Step-by-Step
- Install Laravel Boost 2.0 globally or in dev dependencies.
- Run
/upgrade-laravel-v13in your AI-assisted CLI or editor. - Verify PHP 8.3+ is configured locally and in target servers.
- Test cache serialization allowed classes configuration.



