Zum Inhalt springen

Laravel Release Notes

Einträge
733
Quellen
4
Zuletzt aktualisiert

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

Laravel

Livewire Starter Kits: Blaze wieder enthalten

livewire/blaze ist wieder in den Composer-Manifesten der Livewire Starter Kits enthalten, sodass neu erzeugte Livewire-Anwendungen das Paket mitbringen.

Pull request by @WendellAdriel

livewire/blaze is back in the Livewire starter kit composer manifests. Newly generated Livewire applications will have the package available as expected.

Originalquelle(öffnet in neuem Tab)Problem melden

Laravel

Starter Kits: Larastan auf Level 7 integriert

Larastan auf Level 7 ist jetzt in den Livewire- und Inertia-Starter-Kits enthalten, läuft im Test-Skript und in CI-Workflows, und der Starter-Kit-Code wurde dafür um Typen und Annotationen ergänzt.

Pull request by @WendellAdriel

Larastan at level 7 is now included in both Livewire and Inertia starter kits. Static analysis runs as part of the test script and CI workflows, and the starter kit code has been updated with the necessary types and annotations to pass cleanly at that level.

Originalquelle(öffnet in neuem Tab)Problem melden

Laravel

Teams: Verbesserter Einladungsablauf

Beim Klick auf einen Einladungslink zeigen Login- und Registrierungsseite einen erklärenden Hinweis, und nach dem Login erscheinen offene Einladungen in einem Dashboard-Modal, in dem man sie annehmen oder ablehnen kann.

Pull request by @WendellAdriel

The team invitation experience got a polish pass. Clicking an invite link in an email now shows a contextual banner on the login and register pages so users understand why they're there. After logging in, any pending invitations surface in a modal on the dashboard - accept or decline without hunting for a settings page.

Originalquelle(öffnet in neuem Tab)Problem melden

Laravel

MCP: Resources-Unterstützung im MCP-Client

Der MCP-Client kann jetzt Resources verbundener Server per $client->resources() auflisten und per $client->readResource() über ihre URI lesen.

Pull request by @pushpak1300

The MCP client can now list and read resources from any connected server, joining tools and prompts as first-class operations. Use $client->resources() to get a paginated collection keyed by URI, and $client->readResource() to fetch a specific resource by its URI.

$client = Mcp::client('everything')->connect();

$resources = $client->resources();

$result = $client->readResource('file://readme');
$result->content();  // the file contents
$result->mimeType(); // "text/plain", etc.

Originalquelle(öffnet in neuem Tab)Problem melden

Laravel

MCP: Tools im MCP-Client auflisten und aufrufen

Der MCP-Client kann jetzt Tools verbundener Server per $client->tools() auflisten und per $client->callTool() direkt aufrufen.

Pull request by @pushpak1300

The MCP client can now discover and call tools on any connected server. $client->tools() returns an auto-paginated collection keyed by name - iterate it to see what's available, or call any tool directly with $client->callTool().

$client = Client::local('npx', ['-y', '@modelcontextprotocol/server-everything']);

$tools = $client->tools();
$tools->keys()->all(); // ['add', 'printEnv', ...]

$result = $client->callTool('add', ['a' => 1, 'b' => 2]);
$result->text(); // "3"

See the MCP documentation for the full client API.

Originalquelle(öffnet in neuem Tab)Problem melden

Laravel

MCP: Streamable-HTTP-Transport im MCP-Client

Der MCP-Client unterstützt jetzt den Streamable-HTTP-Transport der MCP-Spezifikation 2025-11-25 mit integrierter Bearer-Token-Authentifizierung und ermöglicht so Verbindungen zu entfernten MCP-Servern, die sich mit Http::fake() testen lassen.

Pull request by @pushpak1300

The MCP client now supports the Streamable HTTP transport from the MCP 2025-11-25 spec, making it possible to connect to remote MCP servers over HTTP alongside the existing stdio transport. Bearer token authentication is built in.

// Remote server over HTTP
$client = Client::web('https://mcp.example.com/mcp');

// With a bearer token
Client::web('https://mcp.example.com/mcp')->withToken(env('REMOTE_TOKEN'));

HTTP-based clients are fully testable via Http::fake(), just like any other HTTP call in Laravel.

Originalquelle(öffnet in neuem Tab)Problem melden

Laravel

MCP: Prompts-Unterstützung im MCP-Client

Der MCP-Client kann jetzt mit $client->prompts() verfügbare Prompts auflisten und mit $client->getPrompt() einen bestimmten Prompt samt Argumenten abrufen.

Pull request by @pushpak1300

Prompt listing and retrieval round out the MCP client's protocol support. $client->prompts() returns a collection of available prompts keyed by name, and $client->getPrompt() fetches a specific prompt with any required arguments.

$client->prompts(); // Collection<string, Prompt>
$client->getPrompt('greeting', ['name' => 'John'])->text();

Originalquelle(öffnet in neuem Tab)Problem melden

Laravel

Prompts: Neue Callout-Komponente

Die neue Funktion callout() gibt gestaltete Hinweisboxen in der CLI aus und unterstützt Überschriften, Listen, Schlüssel-Wert-Paare, Inline-Code, Warn- und Fehlervarianten sowie eine optionale Fußzeile.

Pull request by @joetannenbaum

The callout() function adds styled informational boxes to CLI output - handy for highlighting warnings, surfacing key information, or drawing attention to something important without just dumping text. Supports headings, bulleted and numbered lists, key-value pairs, inline code formatting, warning and error variants, and an optional footer.

Originalquelle(öffnet in neuem Tab)Problem melden

Laravel

Sail: Abschlusszeile nach beendeter Aufgabe

Nach Abschluss eines task() wird nun nach dem Ausblenden des Spinners eine Zeile mit Häkchen und Label ausgegeben, sodass erledigte Aufgaben sichtbar bleiben.

Pull request by @lazerg

Previously, when a task() finished, the spinner and label would disappear from the terminal with nothing to show for it. Now a checkmark + label line is printed after the spinner clears, so users can see which tasks have completed at a glance.

Originalquelle(öffnet in neuem Tab)Problem melden

Laravel

Scout: Build-Argument PHP_EXTENSIONS für zusätzliche PHP-Erweiterungen

Über das Build-Argument PHP_EXTENSIONS in docker-compose.yml lassen sich per Leerzeichen getrennt zusätzliche PHP-Erweiterungen installieren, ohne das Dockerfile zu veröffentlichen und zu bearbeiten; bestehende Builds bleiben unverändert.

Pull request by @sydgren

Installing extra PHP extensions in Sail no longer requires publishing and hand-editing the Dockerfile. Pass a PHP_EXTENSIONS build argument in docker-compose.yml with a space-separated list of extensions, and Sail's Dockerfile will install them at build time.

services:
    laravel.test:
        build:
            context: ./vendor/laravel/sail/runtimes/8.4
            dockerfile: Dockerfile
            args:
                WWWGROUP: "${WWWGROUP}"
                PHP_EXTENSIONS: "gmp imagick"

Existing builds are unaffected - the argument defaults to empty.

Originalquelle(öffnet in neuem Tab)Problem melden

Laravel

Socialite: Optionale Unique-Indexing-Jobs gegen doppeltes Scout-Reindexing

Die neuen optionalen Job-Varianten MakeSearchableUnique und RemoveFromSearchUnique stellen sicher, dass pro Modell nur ein Indexierungs-Job in der Queue liegt, und erfordern einen Standard-Cache-Store.

Pull request by @stevebauman

If the same model gets saved multiple times in quick succession, Scout can end up queuing redundant indexing jobs for it. The new unique job variants - MakeSearchableUnique and RemoveFromSearchUnique - implement ShouldBeUniqueUntilProcessing, so only one job per model sits in the queue at a time. Opt in by registering them in a service provider.

use Laravel\Scout\Scout;
use Laravel\Scout\Jobs\MakeSearchableUnique;
use Laravel\Scout\Jobs\RemoveFromSearchUnique;

Scout::makeSearchableUsing(MakeSearchableUnique::class);
Scout::removeFromSearchUsing(RemoveFromSearchUnique::class);

These require a default cache store, so they're opt-in rather than the new default.

Originalquelle(öffnet in neuem Tab)Problem melden

Laravel

Socialite: Fake-Benutzer einfacher mit User::fake() erstellen

Mit der neuen statischen Methode User::fake() lassen sich Socialite-Testbenutzer mit nur den benötigten Attributen erzeugen, den Rest füllen Standardwerte, auch für OAuth-1-Benutzer.

Pull request by @stevebauman

Setting up a fake Socialite user in tests used to require constructing and mapping an attribute array by hand before passing it to Socialite::fake(). The new User::fake() static method takes care of all of that - pass only the attributes you care about and sensible defaults fill in the rest.

// Before
Socialite::fake('github', (new User)->setRaw($attributes)->map($attributes)
    ->setToken('fake-token')
    ->setRefreshToken('fake-refresh-token')
    ->setExpiresIn(3600)
    ->setApprovedScopes([]));

// After
Socialite::fake('github', User::fake([
    'email' => 'test@example.com',
]));

Works for OAuth 1 users too, via \Laravel\Socialite\One\User::fake().

Originalquelle(öffnet in neuem Tab)Problem melden

Laravel Framework von Laravel

Laravel Framework 13.18.0

Version 13.18.0 reduziert Cache-Zugriffe bei debounced Jobs, ergänzt prioritätsbasierte Registrierung für Dev-Befehle und Informationen im WorkerStopping-Event und behebt mehrere Fehler, etwa bei Cache-Headern auf HEAD-Requests, RateLimited-Middleware und Number::forHumans().

Originalquelle(öffnet in neuem Tab)Problem melden

Laravel Framework von Laravel

schema:dump mit Flag --without-migration-data

Der Befehl schema:dump akzeptiert jetzt das Flag --without-migration-data, das die Zeilen der Migrationstabelle aus dem Dump entfernt und nur die Struktur ausgibt.

Pull request by @jackbayliss

schema:dump now accepts a --without-migration-data flag that strips migration table rows from the output, leaving you with a clean structural dump. Handy for test environments where you want to seed the schema without carrying over migration history from another environment.

php artisan schema:dump --without-migration-data

Originalquelle(öffnet in neuem Tab)Problem melden

Laravel Framework von Laravel

between()/unlessBetween() unabhängig von der timezone()-Reihenfolge

Wird between() oder unlessBetween() vor timezone() aufgerufen, wird die angegebene Zeitzone nun korrekt berücksichtigt, weil die Zeitprüfung erst bei Ausführung des Filters erfolgt.

Pull request by @ManicardiFrancesco

Previously, calling between() or unlessBetween() before timezone() in a schedule chain would silently use UTC regardless of what timezone you specified - a subtle bug that could have scheduled tasks running at the wrong hour in production. The time-interval check is now deferred until the filter executes, so the order no longer matters.

// Both of these now behave identically
$schedule->command('foo')->timezone('Europe/Rome')->between('10:00', '12:00');
$schedule->command('foo')->between('10:00', '12:00')->timezone('Europe/Rome');

Originalquelle(öffnet in neuem Tab)Problem melden

Laravel Framework von Laravel

Neuer Befehl php artisan dev

php artisan dev startet Server, Queue Worker, Log-Tailing und Vite gleichzeitig mit farblich getrennter Ausgabe, erkennt den Node-Paketmanager automatisch und lässt sich über Service Provider um weitere Befehle erweitern.

Pull request by @joetannenbaum

php artisan dev brings all your development processes together in one command - server, queue worker, log tailing, and Vite running concurrently, each with its own color-coded output. It replaces the composer dev script with a proper Artisan convention and auto-detects your Node package manager (npm, yarn, pnpm, or bun).

You can register additional commands from a service provider - useful for tools like Reverb or Stripe's CLI webhook listener:

use Illuminate\Foundation\Console\DevCommands;

DevCommands::artisan('reverb:start', 'reverb')->orange();
DevCommands::register('stripe listen --forward-to ' . config('app.url'))->green();

Originalquelle(öffnet in neuem Tab)Problem melden

Laravel Framework von Laravel

Maintenance-Mode-Treiber array für paralleles Testen

Ein neuer In-Memory-Treiber array hält den Maintenance Mode pro Prozess isoliert und vermeidet so Race Conditions bei parallelen Test-Suites.

Pull request by @ziadoz

Parallel test suites and the file-based maintenance mode driver don't mix well - shared state on disk leads to race conditions between workers. The new in-memory array driver keeps maintenance mode isolated per process, mirroring the same pattern used by the cache and session drivers. No more flaky tests caused by leftover maintenance mode files.

Originalquelle(öffnet in neuem Tab)Problem melden

Laravel Framework von Laravel

Neue Methode whenFilledEnum in InteractsWithData

whenFilledEnum() führt den Callback nur aus, wenn der Schlüssel vorhanden ist und der Wert einem gültigen Enum-Case entspricht, und übergibt eine typisierte Enum-Instanz.

Pull request by @astandkaya

Working with backed enums in request data used to mean a whenFilled() call followed by a tryFrom() check and a null guard. whenFilledEnum() collapses all of that into a single method that only fires the callback when the key is present, the value maps to a valid enum case, and you get a typed enum instance in the closure - no manual validation needed.

// Before
$request->whenFilled('status', function (string $input) use ($query): void {
    $status = Status::tryFrom($input);
    if ($status === null) {
        return;
    }
    $query->where('status', $status);
});

// After
$request->whenFilledEnum('status', Status::class, function (Status $status) use ($query): void {
    $query->where('status', $status);
});

Originalquelle(öffnet in neuem Tab)Problem melden

Laravel Framework von Laravel

anyOf-Unterstützung in JSON Schema

Illuminate\JsonSchema unterstützt jetzt anyOf, was für KI-Szenarien mit strukturierter Ausgabe nützlich ist, in denen ein Feld mehrere unterschiedliche Formen annehmen kann.

Pull request by @dbpolito

Illuminate\JsonSchema now supports anyOf, which is essential for AI structured output scenarios where a field can resolve to one of several distinct shapes. Both OpenAI and Gemini support anyOf in their structured output APIs, so this unlocks more expressive schema definitions when building AI-powered features with Laravel AI.

Originalquelle(öffnet in neuem Tab)Problem melden

Laravel Framework von Laravel

Neu: Bus::bulk() für effizientes Queueing vieler Jobs

Bus::bulk() gruppiert Jobs nach Queue und Connection und führt pro Gruppe nur einen einzigen Bulk-Insert aus, statt jeden Job einzeln zu schreiben.

Pull request by @jackbayliss

When you need to queue a large number of jobs at once, Bus::bulk() is the most efficient way to do it. Rather than dispatching jobs one by one (one database insert each) or using a batch (which writes on every completion), Bus::bulk() groups jobs by queue and connection and performs a single bulk insert per group. No overhead, no per-job write costs.

Bus::bulk(
    $users->map(fn (User $user) => new ProcessUser($user))->all()
);

Originalquelle(öffnet in neuem Tab)Problem melden