Introduction
Laravel 13 was released on March 17, 2026. As with the yearly major release cadence, Laravel 13 focuses in particular on AI-native workflows, safer defaults, and more expressive developer APIs. Breaking changes are kept to a minimum, so most applications can upgrade with only small adjustments. On the other hand, many new features—the Laravel AI SDK, semantic search, and more—have been added that can significantly change how modern applications are built.Laravel 13 support policy: bug fixes through 2027 Q3 and security fixes through March 17, 2028.
PHP requirements update
Laravel 13 requires PHP 8.3 or later. Support for PHP 8.2 has ended.
Major PHP 8.3 benefits include typed constants, the
json_validate() function, and the #[\Override] attribute.
Major new features
Laravel AI SDK
Laravel 13’s headline feature is the first-party AI SDK. It provides a unified API for text generation, tool-calling agents, embeddings, audio, image generation, and vector store integration. You can build provider-agnostic AI features while retaining the Laravel-native developer experience. Text generation (agents)Semantic / vector search
Native vector query support, integrated with the AI SDK, has been added. You can run semantic search directly from the query builder using PostgreSQL +pgvector.
JSON:API resources
First-party JSON:API resource support has been added to Laravel. It’s now easy to return responses that conform to the JSON:API specification:- Resource object serialization
- Relationship includes
- Sparse fieldsets
- Links
- JSON:API-compliant response headers
Expanded PHP attributes
Laravel 13 extends declarative configuration via PHP attributes across the framework. Applied to controllers
Additional attributes are introduced for Eloquent, events, notifications, validation, testing, resource serialization APIs, and more.
Queue routing
UseQueue::route(...) to define default queue and connection routing rules for specific jobs in one place.
Cache TTL extension
UseCache::touch(...) to extend the TTL of a cache item without fetching and re-storing the value.
Security enhancements
Strengthened CSRF protection (PreventRequestForgery)
The CSRF middleware has been renamed from VerifyCsrfToken to PreventRequestForgery, and origin validation via the Sec-Fetch-Site header has been added.
VerifyCsrfToken remains as a deprecated alias, but migrating to the new class name is recommended.
Cache deserialization restrictions
Aserializable_classes option has been added to config/cache.php, and the default is false. This mitigates PHP deserialization attacks if APP_KEY is leaked.
Starter kit changes
The starter kits revamped in Laravel 12 (React/Vue/Livewire-based) continue to be available in Laravel 13. Inertia v3 was also released alongside Laravel 13. Key changes include:- Simpler layout props
- Vite 8 support
- Addition of a
withAppcallback - New Blade components
Other improvements
AI-assisted upgrade (Laravel Boost)
Laravel Boost is a first-party MCP server. It integrates with AI editors like Claude Code, Cursor, OpenCode, Gemini, and VS Code, letting you semi-automate upgrades via the/upgrade-laravel-v13 slash command.
New contract methods
New methods have been added to the following contracts:Summary
Laravel 13 is a release characterized by “few breaking changes, many new features.” Upgrade work is minimal, while the AI SDK and semantic search in particular have the potential to change how modern applications are built. When you’re ready to upgrade an existing application from Laravel 12 to 13, see the detailed guide below.Upgrade guide: Laravel 12 to 13
A list of breaking changes and step-by-step upgrade instructions.