Skip to main content
March 2026 was a landmark month for the Laravel ecosystem. Laravel 13 was officially released alongside the first-party AI SDK, JSON:API resources, Inertia v3, and many other major features. Source: Laravel March Product Updates

Laravel Framework

Laravel AI SDK

Laravel 13 introduced a first-party AI SDK with a unified API for text generation, tool-using agents, embeddings, audio, images, and vector store integrations. You can build provider-independent AI features through a consistent, Laravel-native developer experience.
use Laravel\Ai\Facades\Ai;

$response = Ai::text('gpt-4o')->generate('What is Laravel?');

JSON:API resources

Laravel now includes first-party JSON:API resources. They serialize resource objects and automatically handle included relationships, sparse fieldsets, links, and JSON:API-compliant response headers.
use Laravel\JsonApi\Resources\JsonApiResource;

class UserResource extends JsonApiResource
{
    public function toAttributes(Request $request): array
    {
        return ['name' => $this->name, 'email' => $this->email];
    }
}

Stronger request forgery protection

The CSRF protection middleware was formalized as PreventRequestForgery, adding origin-aware request validation while preserving compatibility with token-based CSRF protection.

Queue routing

Queue::route() centralizes default queue and connection routing rules for individual job classes.
Queue::route(ProcessPodcast::class, connection: 'redis', queue: 'podcasts');

Expanded PHP attributes

Laravel 13 expanded first-party PHP attributes across the framework. Controller and authorization attributes such as #[Middleware] and #[Authorize] let you declare configuration and behavior directly.
use Illuminate\Routing\Attributes\Middleware;

class UserController extends Controller
{
    #[Middleware('auth')]
    public function index(): Response
    {
        // ...
    }
}

Cache::touch()

Cache::touch() extends an existing cache item’s TTL without retrieving and storing its value again.
Cache::touch('user-session', now()->addHour());
Native vector queries, embedding workflows, and related APIs make it easier to build AI-powered search with PostgreSQL and pgvector.

Inertia v3

Vite plugin

The new @inertiajs/vite plugin removes entry-point boilerplate, automatically resolves pages from ./Pages, and handles code splitting, lazy loading, and SSR configuration.
npm install @inertiajs/vite --save-dev

SSR during development

npm run dev now starts SSR automatically, with no separate Node.js process required.

Axios removed

Axios and qs were removed from Inertia’s dependencies. A lightweight built-in XHR client now handles HTTP communication, reducing bundle size and dependencies.
If your application depends on Axios interceptors, the Axios adapter preserves existing behavior during migration.

Optimistic updates

The .optimistic() method updates the interface immediately without waiting for the server response.
router.post('/posts', data, {
    optimistic: (currentProps) => ({
        posts: [...currentProps.posts, { ...data, id: 'temp' }],
    }),
});

Instant visits

Inertia can immediately transition to the target page component while the server request continues in the background.

Other packages

New Prompts features

  • datatable() browses, searches, and selects tabular data
  • title() sets the terminal window title
  • stream() displays AI responses in real time
  • task() displays task execution with a spinner
  • autocomplete() provides input completion
  • notify() sends native macOS and Linux desktop notifications

Passport, Reverb, and Scout

  • Passport: #[TokenCan] declares required token scopes directly on controller methods.
  • Reverb: per-application rate limiting uses Laravel’s built-in rate limiter.
  • Scout: query builders support operators such as where('created_at', '>', $date).

Laravel Cloud and Laravel Forge

ProductKey updates
Laravel Cloud$5 free trial without a credit card, GitHub SSO, scheduled autoscaling, and a redesigned usage page
Laravel ForgeManaged PostgreSQL on VPSs with observability, read replicas, and automated backups
Last modified on July 13, 2026