Laravel 13 was released on March 17, 2026, continuing the framework's annual release cadence, and it's a different kind of major version than usual. Rather than a large batch of breaking changes, the Laravel team has spent the release cycle deliberately minimizing them — most existing applications can upgrade with little to no code changes — while still shipping substantial new capability, most of it centered on AI-native workflows.
Laravel 13 requires PHP 8.3 or later. Here's what actually changed and why it matters for real applications, not just demos.
The Laravel AI SDK
The headline addition is a first-party Laravel AI SDK, giving Laravel applications a unified, provider-agnostic API for text generation, tool-calling agents, embeddings, image generation, and audio synthesis. The point isn't that Laravel is "adding AI" as a marketing checkbox — it's that these capabilities now follow the same conventions as the rest of the framework, instead of every team hand-rolling its own wrapper around a provider's SDK.
A basic agent call looks like ordinary Laravel:
use App\Ai\Agents\SalesCoach;
$response = SalesCoach::make()->prompt('Analyze this sales transcript...');
return (string) $response;
The same SDK covers image and audio generation with an equally small surface area:
use Laravel\Ai\Image;
$image = Image::of('A donut sitting on the kitchen counter')->generate();
JSON:API resources, first-party
Laravel now ships resources that produce responses compliant with the JSON:API specification out of the box — resource object serialization, relationship inclusion, sparse fieldsets, links, and the correct response headers, without a third-party package. For teams that already standardize on JSON:API for their public or partner-facing endpoints, this removes a dependency that previously had to be bolted on and kept in sync with framework upgrades separately.
Native semantic and vector search
Laravel 13 deepens its semantic search support with native vector query capabilities, most visibly a new whereVectorSimilarTo() method on the query builder for PostgreSQL databases running the pgvector extension:
$documents = DB::table('documents')
->whereVectorSimilarTo('embedding', 'Best wineries in Napa Valley')
->limit(10)
->get();
Generating the embeddings themselves is just as direct, via a new string helper:
use Illuminate\Support\Str;
$embeddings = Str::of('Napa Valley has great wine.')->toEmbeddings();
This matters for a specific, common problem: search that understands meaning and paraphrase, not just exact keyword matches — a knowledge base, a support-ticket search, or a content recommendation feature — without reaching for a separate search infrastructure just to run similarity queries.
What else shipped
A handful of smaller changes round out the release, and several are the kind of thing that quietly removes boilerplate rather than adding a marquee feature:
- Expanded PHP attributes — controller-level
#[Middleware]and#[Authorize]attributes, plus queue-oriented#[Tries],#[Backoff],#[Timeout], and#[FailOnTimeout], let common configuration live directly on the class or method it applies to. - Queue routing by class —
Queue::route(ProcessPodcast::class, connection: 'redis', queue: 'podcasts')centralizes which connection and queue a job uses, instead of scattering that decision across dispatch calls. PreventRequestForgery— a formalized, origin-aware evolution of Laravel's CSRF protection middleware.Cache::touch()— extends a cache entry's TTL without re-fetching and re-storing its value.
Laravel's support policy applies as usual: bug fixes for 18 months, security fixes for 2 years. Laravel 13 receives security fixes until March 2028.
Where the AI SDK and vector search actually earn their place
It's worth being specific about where these features solve a real problem, rather than treating them as boxes to check. A few concrete patterns:
- Support and documentation search. Keyword search fails the moment a customer describes their problem differently than your docs do. Vector similarity search against embedded support articles or documentation returns results based on meaning, not exact phrasing — a materially better experience for the same underlying content.
- Internal tools with a natural-language layer. A dashboard where someone can ask "which invoices are overdue by more than 30 days from clients in the EU" instead of building a filter UI for every possible question is a realistic use for the AI SDK's tool-calling agents, provided the agent's tools are scoped narrowly to what it's actually allowed to query.
- Content and product recommendations. Embedding a product catalog or content library once and querying it by similarity is a lighter lift than standing up a dedicated recommendation service, especially for a catalog that isn't at a scale that needs one.
None of these require an application to be "an AI product." They're existing, unglamorous problems — search relevance, ad hoc reporting, recommendations — that a first-party SDK now makes cheaper to solve well.
What this means for businesses building on Laravel
For a business already running Laravel — powering an internal application, a custom CMS, or an API layer behind a separate frontend — Laravel 13's value isn't that you must adopt AI features to benefit. The low-friction upgrade path means most applications can move to 13 primarily for the ongoing security and bug-fix window, and adopt the AI SDK, JSON:API resources, or vector search only when a real feature actually needs them.
Where it gets genuinely useful is for teams already planning AI-assisted features — a support search that understands intent, a content recommendation system, an internal tool with a natural-language interface — since the SDK removes a meaningful chunk of the provider-integration and prompt-plumbing work that used to be built from scratch on every project. It's also worth noting the SDK's provider-agnostic design means a feature built against one model provider isn't locked to it if pricing, quality, or availability changes later — a real operational risk with AI-dependent features that this design choice directly addresses.



