Backend

Laravel 13 Released: What's New? Complete Overview

July 11, 202614 min read
Laravel 13 Released Banner

Laravel 13 has officially arrived, bringing unified AI agent primitives, first-party JSON:API resources, semantic vector search, queue routing, and expanded attribute coverage.

Laravel 13 continues the framework's annual release cadence, delivering major capabilities while prioritizing zero-friction upgrades. For engineering teams building SaaS, custom ERP systems, and cloud architectures, the native AI SDK and built-in vector search features simplify the backend stack significantly.

What Is Laravel 13?

Released on March 17, 2026, Laravel 13 introduces a suite of first-party packages and improvements that turn the framework into an AI-native stack. Key features include the Laravel AI SDK, JSON:API compliant resource wrappers, semantic query helpers, centralized queue routing, and new request forgery security additions.

VersionPHP RangeRelease DateBug FixesSecurity Patches
Laravel 118.2 - 8.4March 12, 2024Sep 3, 2025March 12, 2026
Laravel 128.2 - 8.5Feb 24, 2025Aug 13, 2026Feb 24, 2027
Laravel 138.3 - 8.5March 17, 2026Q3 2027March 17, 2028

Laravel 13 vs Laravel 12: Comparison

Laravel 13 vs Laravel 12 comparison details

New Feature: First-Party AI SDK

The new Laravel AI SDK provides a unified wrapper API for text generation, agent building, voice actions, and embeddings. Developers can switch LLM providers (OpenAI, Anthropic, Gemini, local models) purely from environment configuration without rewriting application code.

1. Tool-Calling Agent Prompting

use App\Ai\Agents\SalesCoach;

$response = SalesCoach::make()->prompt('Analyze this transcript for customer objections...');
return (string) $response;

2. Vector Embeddings Generation

use Illuminate\Support\Str;

$embeddings = Str::of('Multi-tenant SaaS architecture security practices')->toEmbeddings();

New Feature: Semantic / Vector Search

Laravel 13 introduces native vector query capabilities that hook directly into PostgreSQL and the pgvector extension. You can now execute semantic query evaluations right inside the standard Eloquent builder:

use Illuminate\Support\Facades\DB;

$documents = DB::table('documents')
    ->whereVectorSimilarTo('embedding', 'Best practices for Laravel queue workers')
    ->limit(10)
    ->get();

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(ProcessInvoice::class, connection: 'redis', queue: 'invoices');
Queue::route(SendWelcomeEmail::class, connection: 'sqs', queue: 'emails');

New Feature: First-Party JSON:API Resources

First-party JSON:API resources are now built into Illuminate\Http. This standardizes response outputs matching the JSON:API specifications, handling compound relationship inclusions, sparse fieldsets, and automated headers natively.

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+, updating dependencies in composer.json, renaming the CSRF middleware class to PreventRequestForgery, and reviewing cache serialization classes.

Upgrade Step-by-Step

  1. Install Laravel Boost 2.0 globally or in dev dependencies.
  2. Run /upgrade-laravel-v13 in your AI-assisted CLI or editor.
  3. Verify PHP 8.3+ is configured locally and in target servers.
  4. Test cache serialization allowed classes configuration.

Need a Robust Laravel Backend?

We build enterprise-ready web applications, SaaS platforms, and cloud APIs using cutting-edge Laravel architectures. Let's discuss how we can supercharge your backend infrastructure.