Zum Inhalt springen

Laravel Release Notes

519 Einträge aus 4 Quellen. Zuletzt aktualisiert:

Folge Laravel, um die Release Notes in deinen Feed zu holen.

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel

VS Code Extension: Gängige Artisan-Befehle im Terminal

Dreißig gängige Artisan-Befehle wie migrate, tinker und route:list lassen sich nun über die VS-Code-Befehlspalette in einem eigenen Terminal „Laravel Artisan“ ausführen.

Pull request by @TitasGailius

Thirty common Artisan commands are now a keystroke away in the VS Code command palette, including migrate, migrate:fresh, tinker, db, route:list, pail, queue:retry, schedule:list, cache:clear, and more. Each runs in a dedicated Laravel Artisan terminal so you can read the output directly. Less context switching, more shipping.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel

VS Code Extension: Pest-IntelliSense

Die Extension liest die Pest-Konfiguration und erzeugt Helfer-Docblocks mit korrektem $this-Typ, Autovervollständigung für pest()->extend() und pest()->use() sowie benutzerdefinierte Expectations, abgelegt in storage/framework/testing/_pest.php.

Pull request by @TitasGailius

Pest test files get a real intellisense upgrade. The extension now reads your Pest config to generate helper docblocks that preserve the right $this type inside hooks and tests, surface pest()->extend(...) and pest()->use(...) setups for autocomplete and navigation, and expose any custom expectations you have defined. Generated docblocks live in storage/framework/testing/_pest.php, which is gitignored. Writing Pest tests in VS Code feels noticeably better.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel

VS Code Extension: Befehl „Go to route“

Der neue Befehl „Laravel: Go to route“ öffnet eine Fuzzy-Suche über alle registrierten Routen nach Pfad oder Name und springt direkt zum jeweiligen Handler.

Pull request by @TitasGailius

A new Laravel: Go to route command opens a fuzzy picker of every registered route, by path or name, and jumps straight to the handler. No more grepping for a controller method or scanning route:list. One of those small commands you wonder how you lived without after a week.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel

Laravel Framework 13.x: JsonFormatter eingeführt

Der neue Illuminate\Log\Formatters\JsonFormatter nimmt context()-Daten von Exceptions, auch aus verketteten vorherigen Exceptions, in strukturierte Logs auf.

Pull request by @cosmastech

Exception context is one of those things you only realize you needed after staring at production logs for hours. The new Illuminate\Log\Formatters\JsonFormatter ensures context() data on your custom exceptions actually shows up in structured logs, including context from previous exceptions in a chain. Wire it up in config/logging.php:

'formatter' => Illuminate\Log\Formatters\JsonFormatter::class,

Now an exception like this carries its enriched context all the way through to the log entry:

class MyException extends \RuntimeException
{
    public function context(): array
    {
        return [
            'luke' => 'cosmastech',
            'taylor' => 'taylorotwell',
        ];
    }
}

Whether the exception is sent through report() or written via Log::error() with an exception key, the structured payload now includes everything you put on the exception itself.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel

Laravel Framework 13.x: prefersJsonResponses() im Application Builder

Mit dem optionalen prefersJsonResponses() im Application Builder werden breite Accept-Header als JSON behandelt, während explizite text/html-Anfragen unverändert bleiben und der ursprüngliche Wert in X-Original-Accept erhalten bleibt.

Pull request by @WendellAdriel

Building an API and tired of curl requests coming back as HTML? One line in bootstrap/app.php now treats broad Accept headers as JSON, so auth redirects, validation errors, and exception pages all serialize properly for clients that didn't ask for HTML:

return Application::configure(basePath: dirname(__DIR__))
    ->withRouting(
        web: __DIR__.'/../routes/web.php',
        commands: __DIR__.'/../routes/console.php',
    )
    ->prefersJsonResponses()
    ->create();

Clients that explicitly request text/html are left alone, and the original Accept value is preserved on X-Original-Accept if you need it for logging. Default behavior is unchanged unless you opt in.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel

Agent Skills: useHttp erhält onHttpException, onNetworkError und Response in onSuccess

Der useHttp-Hook bietet nun die Fehler-Callbacks onHttpException und onNetworkError sowie die rohe HttpResponse als zweites Argument von onSuccess, verfügbar für React, Vue und Svelte.

Pull request by @pascalbaljet

The useHttp hook gets the same error callbacks Inertia visits already have. No more wrapping calls in try/catch just to handle a 500 or a dropped connection. There's also a second argument on onSuccess that hands you the raw HttpResponse, so telling a 200 apart from a 204 is now trivial. Available across the React, Vue, and Svelte adapters.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel

Echo: clickOnceEnabled() und clickOnceVisible() hinzugefügt

Die neuen Browser-Methoden clickOnceEnabled() und clickOnceVisible() warten, bis ein Element bereit ist, und klicken es dann genau einmal.

Pull request by @weshooper

Two small additions, big quality-of-life win. The new clickOnceEnabled() and clickOnceVisible() browser methods wait for an element to be ready before clicking it exactly once, no pause() calls, no flaky retries:

$browser->clickOnceVisible('@save-button');
$browser->clickOnceEnabled('@submit-button');

A clean way to keep your test suite stable on slower pages.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel

Laravel 13: Laravel AI SDK

Laravel 13 führt das erstklassige Laravel AI SDK ein, das eine einheitliche API für Textgenerierung, Tool-Calling-Agents, Embeddings, Audio, Bilder und Vector-Store-Integrationen bietet.

Laravel 13 introduces the first-party Laravel AI SDK, providing a unified API for text generation, tool-calling agents, embeddings, audio, images, and vector-store integrations.

With the AI SDK, you can build provider-agnostic AI features while keeping a consistent, Laravel-native developer experience.

For example, a basic agent can be prompted with a single call:

use App\Ai\Agents\SalesCoach;

$response = SalesCoach::make()->prompt('Analyze this sales transcript...');

return (string) $response;

The Laravel AI SDK can also generate images, audio, and embeddings:

For visual generation use cases, the SDK offers a clean API for creating images from plain-language prompts:

use Laravel\Ai\Image;

$image = Image::of('A donut sitting on the kitchen counter')->generate();

$rawContent = (string) $image;

For voice experiences, you can synthesize natural-sounding audio from text for assistants, narrations, and accessibility features:

use Laravel\Ai\Audio;

$audio = Audio::of('I love coding with Laravel.')->generate();

$rawContent = (string) $audio;

And for semantic search and retrieval workflows, you can generate embeddings directly from strings:

use Illuminate\Support\Str;

$embeddings = Str::of('Napa Valley has great wine.')->toEmbeddings();

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel

Laravel 13: JSON:API Resources

Laravel enthält jetzt eigene JSON:API Resources, die Ressourcen-Serialisierung, Relationship-Inclusion, Sparse Fieldsets, Links und JSON:API-konforme Response-Header übernehmen.

Laravel now includes first-party JSON:API resources, making it straightforward to return responses compliant with the JSON:API specification.

JSON:API resources handle resource object serialization, relationship inclusion, sparse fieldsets, links, and JSON:API-compliant response headers.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel

Laravel 13: Request Forgery Protection

Die CSRF-Schutz-Middleware wurde als PreventRequestForgery formalisiert und um eine herkunftsbezogene Request-Prüfung erweitert, bleibt aber mit tokenbasiertem CSRF-Schutz kompatibel.

For security, Laravel's request forgery protection middleware has been enhanced and formalized as PreventRequestForgery, adding origin-aware request verification while preserving compatibility with token-based CSRF protection.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel

Laravel 13: Queue Routing per Klasse

Mit Queue::route(...) lassen sich Standard-Routing-Regeln für Connection und Queue bestimmter Jobs zentral festlegen.

Laravel 13 adds queue routing by class via Queue::route(...), allowing you to define default queue / connection routing rules for specific jobs in a central place:

Queue::route(ProcessPodcast::class, connection: 'redis', queue: 'podcasts');

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel

Laravel 13: Erweiterte PHP Attributes

Laravel 13 erweitert die PHP-Attribut-Unterstützung, unter anderem um #[Middleware], #[Authorize], #[Tries], #[Backoff], #[Timeout] und #[FailOnTimeout], sowie um weitere Attribute für Eloquent, Events, Notifications, Validation, Testing und Resource-Serialisierung.

Laravel 13 continues to expand first-party PHP attribute support across the framework, making common configuration and behavioral concerns more declarative and colocated with your classes and methods.

Notable additions include controller and authorization attributes like #[Middleware] and #[Authorize], as well as queue-oriented job controls like #[Tries], #[Backoff], #[Timeout], and #[FailOnTimeout].

For example, controller middleware and policy checks can now be declared directly on classes and methods:

<?php

namespace App\Http\Controllers;

use App\Models\Comment;
use App\Models\Post;
use Illuminate\Routing\Attributes\Controllers\Authorize;
use Illuminate\Routing\Attributes\Controllers\Middleware;

#[Middleware('auth')]
class CommentController
{
    #[Middleware('subscribed')]
    #[Authorize('create', [Comment::class, 'post'])]
    public function store(Post $post)
    {
        // ...
    }
}

Additional attributes have also been introduced across Eloquent, events, notifications, validation, testing, and resource serialization APIs, giving you a consistent attribute-first option in more areas of the framework.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel

Laravel 13: Cache-TTL verlängern mit Cache::touch

Mit Cache::touch(...) lässt sich die TTL eines vorhandenen Cache-Eintrags verlängern, ohne den Wert abzurufen und neu zu speichern.

Laravel now includes Cache::touch(...), which lets you extend an existing cache item's TTL without retrieving and re-storing its value.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel

Laravel 13: Semantic / Vector Search, Inertia v3 Einführung

Laravel 13 bietet native Vector-Query-Unterstützung und Embedding-Workflows für semantische Suche mit PostgreSQL und pgvector, etwa über whereVectorSimilarTo, und der Eintrag kündigt zudem Inertia v3 mit integriertem XHR-Client, automatischem SSR in der Entwicklung, Vite-Plugin, Optimistic Updates, Instant Visits und useHttp an.

Laravel 13 deepens its semantic search story with native vector query support, embedding workflows, and related APIs documented across search, queries, and the AI SDK.

These features make it straightforward to build AI-powered search experiences using PostgreSQL + pgvector, including similarity search against embeddings generated directly from strings.

For example, you may run semantic similarity searches directly from the query builder:

$documents = DB::table('documents')
    ->whereVectorSimilarTo('embedding', 'Best wineries in Napa Valley')
    ->limit(10)
    ->get();

Inertia v3 is here — a ground-up rethink of the developer experience with a focus on zero-config setup, smaller bundles, and powerful new primitives for building modern apps. Axios and qs have been replaced with a built-in XHR client, SSR works automatically during development without a separate Node process, and a new Vite plugin eliminates nearly all boilerplate. On top of that, v3 introduces optimistic updates, instant visits, standalone HTTP requests via useHttp, layout props, and fine-grained exception handling — all designed to make Inertia apps feel faster to build and faster to use. Here's what's new:

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel

Inertia v3: Vite Plugin

Das neue Plugin @inertiajs/vite macht manuelles resolve, setup und separate SSR-Entry-Dateien überflüssig, löst Pages automatisch aus ./Pages auf und erlaubt einen Einstiegspunkt mit createInertiaApp() ohne Argumente sowie einen neuen withApp-Callback.

A new @inertiajs/vite plugin eliminates the boilerplate that traditionally lived in your app entry point — no more manual resolve, setup, or separate SSR entry files. Pages auto-resolve from ./Pages, code splitting and lazy-loading are handled automatically, and SSR is wired up with zero config. Your app entry point can be as simple as createInertiaApp() with no arguments. A new withApp callback also lets you modify the root app instance (register plugins, provide values) before rendering, on both client and server.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel

Inertia v3: SSR in der Entwicklung

SSR funktioniert bei npm run dev automatisch ohne separaten Node.js-Prozess, die Fehlerausgabe wurde überarbeitet, ein SsrRenderFailed-Event wird ausgelöst und SSR lässt sich pro Route deaktivieren.

SSR now works automatically during npm run dev — no separate Node.js process required. Pages are server-rendered out of the box in development, while the production workflow (vite build && vite build --ssr) remains unchanged. Error reporting has been overhauled: errors now log the component name, URL, and actionable hints, and a SsrRenderFailed event is dispatched for monitoring. You can also disable SSR on specific routes via middleware or the Inertia facade.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel

Inertia v3: Axios entfernt

Axios und qs wurden als Abhängigkeiten entfernt und durch einen schlankeren eingebauten XHR-Client ersetzt, wobei für die Migration ein Adapter für Axios-Interceptors verfügbar ist.

Axios and qs have been removed as dependencies entirely. A lighter built-in XHR client handles all HTTP communication, reducing bundle size and the dependency footprint. If you rely on Axios interceptors or other Axios-specific features, an adapter is available to keep things working during your migration.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel

Inertia v3: Standalone HTTP Requests mit useHttp

Der neue Hook useHttp bietet useForm-ähnliche Bedienung für reine HTTP-Requests außerhalb des Inertia-Seitenlebenszyklus, inklusive reaktivem Status, Fehlerbehandlung, Upload-Fortschritt, Abbruch, Optimistic Updates und Precognition.

A new useHttp hook brings useForm-like ergonomics to plain HTTP requests outside of Inertia's page lifecycle. It provides reactive state management, error handling, file upload progress tracking, and request cancellation — ideal for API calls, external service requests, or any HTTP interaction that doesn't involve an Inertia page visit. It also supports optimistic updates and Precognition out of the box.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel

Inertia v3: Optimistic Updates

Über die verkettbare Methode .optimistic() werden UI-Änderungen sofort vor der Serverbestätigung angewendet und bei fehlgeschlagenen Requests automatisch zurückgesetzt, auch bei router, <Form>, useForm und useHttp.

UI updates now apply immediately before server confirmation via a chainable .optimistic() method. Your callback receives current props and returns the optimistic values, which are applied instantly. When the server responds, real data takes over seamlessly — and if the request fails, changes auto-revert. Multiple concurrent optimistic updates are tracked independently, and the feature works across router visits, <Form>, useForm, and useHttp.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel

Inertia v3: Instant Visits

Mit Instant Visits wird die Zielseiten-Komponente sofort mit Shared Props gerendert, während die Server-Anfrage im Hintergrund läuft und seitenspezifische Props nach der Antwort ergänzt werden.

Navigate to a target page component immediately while the server request fires in the background. The page renders right away using shared props, giving the user an instant transition, and page-specific props merge in when the server responds. This is especially effective for pages where the layout and shell can render before data-heavy content arrives.

Originalquelle(öffnet in neuem Tab)Problem melden