Zum Inhalt springen

Laravel Release Notes

604 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

Prompts: Bessere Anzeige von Fortschrittsbalken bei vielen Schritten

Fortschrittsbalken mit sehr vielen Schritten werden durch Tausendertrennzeichen und zusätzlichen Abstand besser dargestellt.

Pull request by @jessarcher

New progress display

The display of the progress bar when using a large number of steps is improved by adding thousands separators and extra spacing.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel

Reverb: Optionale Verbindungslimits pro Anwendung

Für Reverb lassen sich optionale Verbindungslimits pro Anwendung festlegen, um die Zahl aktiver Verbindungen gemäß Pusher-Protokoll zu begrenzen.

Pull request by @joedixon

You can specify connection limits for those users who wish to limit the number of active connections to a given application as supported by the Pusher protocol.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel

VS Code Extension: Class-Attribute in Blade zu @class umwandeln

Neue Befehle wandeln ausgewählte oder alle class-Attribute in Blade-Dateien in die @class-Direktive um.

Pull request by @N1ebieski

Refactor class attributes

Commands are now available that refactor the selected or all class attributes to the @class directive.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel

VS Code Extension: Auswahl mit Helper umschließen

Neue Befehle umschließen markierten Text mit einem Helper wie dd, collect, dump oder str.

Pull request by @N1ebieski

Wrap with helper

Commands are now available that wrap the selected text with a helper, such as dd, collect, dump, and str.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel

VS Code Extension: Pint-Befehle und Pint beim Speichern

Es gibt neue Befehle zum Ausführen von Pint (alle, geänderte oder aktuelle Datei) sowie eine Option, Pint beim Speichern der aktuellen Datei auszuführen.

Pull request by @joetannenbaum

Commands are now available to "Run Pint", "Run Pint on Dirty Files", and "Run Pint on Current File". There is also now an optiont to run Pint on save for the current file.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel Framework von Laravel

Rate Limiting: neuer after-Hook

Der neue Hook RateLimiter::after ermöglicht Rate Limiting, das zusätzlich zur Anfrage auch die Antwort berücksichtigt.

Pull request by @timacdonald

use Illuminate\Http\Request;
use Illuminate\Support\Facades\RateLimiter;
use Symfony\Component\HttpFoundation\Response;

/*
 * Ensure a user can only hit ten 404 responses in a minute before they are
 * rate limited to ensure user's cannot enumerate resource IDs.
 */
RateLimiter::for('resource-not-found', function (Request $request) {
    return Limit::perMinute(10)
        ->by("user:{$request->user()->id}")

        // The new `after` hook...
        ->after(function (Response $response) {
            return $response->getStatusCode() === 404;
        });
});

The new RateLimiter::after hook lets you apply rate limiting based on the response as well as the request.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel Framework von Laravel

Neue Methode Http::batch für parallele HTTP-Anfragen

Mit Http::batch lassen sich bei parallelen HTTP-Anfragen Callbacks wie before, progress, catch, then und finally in den Ablauf jeder Anfrage einhängen.

Pull request by @WendellAdriel

$responses = Http::batch(fn (Batch $batch) => [
    $batch->get('http://localhost/first'),
    $batch->get('http://localhost/second'),
    $batch->get('http://localhost/third'),
])->before(function (Batch $batch) {
    // This runs before the first HTTP request is executed.
})->progress(function (Batch $batch, int|string $key, Response $response) {
    // This runs after each successful HTTP request from the Batch.
})->catch(function (Batch $batch, int|string $key, Response|RequestException $response) {
    // This runs after each failed HTTP request from the Batch.
})->then(function (Batch $batch, array $results) {
    // This runs ONLY IF all the HTTP requests from the Batch are successful and the batch is not cancelled.
})->finally(function (Batch $batch, array $results) {
    // This runs after all the HTTP requests from the Batch finish and the batch is not cancelled.
})->send();

The new Http::batch method allows you to hook into the lifecycle of each HTTP call when making multiple requests in parallel.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel Framework von Laravel

Benchmark nutzt jetzt den Macroable-Trait

Illuminate\Support\Benchmark verwendet nun den Macroable-Trait und erlaubt dadurch die Registrierung eigener Macros.

Pull request by @1tim22

use Closure;
use Illuminate\Support\Benchmark;
use Illuminate\Support\Facades\Log;

Benchmark::macro('log', fn (Closure $callback) =>
    Log::debug(Benchmark::measure($callback))
);

Benchmark::log(fn () => sleep(1));

Benchmark is now updated with the Macroable trait to allow arbitrary macro registration.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel Framework von Laravel

schedule:work erhält Option --whisper

Die Option --whisper von schedule:work wird an schedule:run durchgereicht und blendet die Meldung "No scheduled commands are ready to run" aus, was die Ausgabe sauberer macht.

Pull request by @thojo0

You can now pass a --whisper option to the schedule:work command. The option is passed through to the schedule:run command, which hides the "No scheduled commands are ready to run" message from the output, producing cleaner logs and terminal output and reducing noise for monitoring tools.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel Framework von Laravel

schedule:list unterstützt Option --json

Der Befehl schedule:list akzeptiert jetzt das Flag --json, damit sich Daten geplanter Tasks programmatisch für Monitoring und Integrationen auswerten lassen.

Pull request by @dxnter

[
    {
        "expression": "0 0 15 * *",
        "repeat_seconds": null,
        "command": "php artisan backup:run",
        "description": "Run daily backup process",
        "next_due_date": "2025-09-15 00:00:00 +00:00",
        "next_due_date_human": "5 days from now",
        "timezone": "UTC",
        "has_mutex": false
    }
]

The schedule:list command now accepts a --json flag to allow programmatic consumption of scheduled task data for monitoring and integration purposes.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel Framework von Laravel

Str::plural mit neuem Argument prependCount

Str::plural akzeptiert nun das Argument prependCount, das die Anzahl automatisch dem Ergebnis voranstellt.

Pull request by @caseydwyer

{{-- Instead of: --}}
We had {{ number_format($attendees->count()) . ' ' . Str::plural('attendee', $attendees->count()) }} at Laracon 2025.

{{-- Now we can: --}}
We had {{ Str::plural('attendee', $attendees->count(), prependCount: true) }} at Laracon 2025.

The Str::plural helper now accepts a new argument, prependCount, that will prepend the count to the string automatically.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel

Inertia: neue InfiniteScroll-Komponente

Für React, Vue und Svelte gibt es die neue Komponente <InfiniteScroll>, mit der sich Endlos-Scroll-Oberflächen einfach durch Umschließen der Elemente erstellen lassen.

Pull request by @pascalbaljet

<template>
    <InfiniteScroll data="users">
        <div v-for="user in users.data" :key="user.id">{{ user.name }}</div>
    </InfiniteScroll>
</template>

A new <InfiniteScroll> component was introduced for React, Vue, and Svelte that allows you to easily create infinite scroll interfaces by wrapping your items in the new component.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel

Boost: neuer Befehl boost:update und Guidelines für Paketautoren

Boost kann sich mit dem neuen Befehl boost:update selbst aktualisieren, und Drittanbieter-Pakete können eigene Guidelines automatisch registrieren, indem sie eine Datei resources/boost/guidelines/core.blade.php mitliefern.

Pull request by @nunomaduro

Boost can now self-update with the new boost:update command. In addition, third-party packages can now auto-register their own guidelines by including a resources/boost/guidelines/core.blade.php file in their package.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel

Echo: stopListeningForNotification hinzugefügt

Die neue Methode stopListeningForNotification beendet das Lauschen auf Benachrichtigungen, ohne den Channel zu verlassen.

Pull request by @thoresuenert

const callback = (notification) => {
    console.log(notification.type);
};

// Start listening...
Echo.private(`App.Models.User.${userId}`).notification(callback);

// Stop listening (callback must be the same)...
Echo.private(`App.Models.User.${userId}`).stopListeningForNotification(
    callback
);

A new stopListeningForNotification method was added to stop listening for notifications without leaving the channel.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel

Installer prüft bei laravel new auf neue Version

Der Installer prüft bei laravel new über Packagist, ob eine neuere Version verfügbar ist, damit die aktuelle Version genutzt wird.

Pull request by @joetannenbaum

The installer now checks if there are updates available on Packagist to ensure you are using the latest version when running laravel new.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Herd Windows von Laravel

Herd 1.22.3 für Windows mit CLI-Befehl

Herd für Windows ermöglicht nun den Befehl herd db über die CLI, erlaubt Pro-Nutzern die Installation jeder verfügbaren Dienstversion und aktualisiert Expose, Laravel-Installer und Composer.

Fixes and Improvements

  • You can now run herd db via the CLI to open the current database connection in TablePlus.
  • Herd Pro users can now install any available service version, not just the latest one.
  • Updated Expose to the latest version
  • Update the Laravel installer to the latest version
  • Updated Composer to the latest version

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Herd Macos von Laravel

Herd 1.22.3 für macOS mit Fehlerbehebungen

Herd für macOS behebt ein Tahoe-Problem beim Verknüpfen bestehender Websites, fügt den CLI-Befehl herd db hinzu und erlaubt Pro-Nutzern die Installation jeder verfügbaren Dienstversion.

Fixes and Improvements

  • We fixed a macOS Tahoe issue when trying to link an existing site via the site wizard.
  • You can now run herd db via the CLI to open the current database connection in TablePlus.
  • Herd Pro users can now install any available service version, not just the latest one.

Note: Version 1.22.2 was skipped due to an internal build issue

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel Framework von Laravel

Laravel Framework 12.x: LazyCollection::withHeartbeat

Die neue Methode withHeartbeat führt während der lazy Enumeration einer Collection in regelmäßigen Zeitabständen einen Callback aus, was besonders bei lang laufenden Prozessen nützlich ist.

Pull request by @JosephSilber

$collection
    ->withHeartbeat(CarbonInterval::minutes(5), function () {
        // ...
    })
    ->each(function ($item) {
        // ...
    });

The new withHeartbeart method allows you to run a callback at regular time intervals while the collection is being lazily enumerated, particularly useful for long-running processes.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel Framework von Laravel

Laravel Framework 12.x: Neue Methode toPrettyJson

Die neue Methode toPrettyJson() ersetzt den Aufruf von toJson(JSON_PRETTY_PRINT) bei Collections.

Pull request by @WendellAdriel

$collection = collect([1,2,3]);

// Instead of this:
$collection->toJson(JSON_PRETTY_PRINT);

// You can now do this:
$collection->toPrettyJson();

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel Framework von Laravel

Laravel 12.x: allowedUrls für Http::preventStrayRequests

Http::allowStrayRequests akzeptiert nun ein Argument, mit dem sich URLs festlegen lassen, an die Tests bei aktivem Http::preventStrayRequests weiterhin Requests senden dürfen.

Pull request by @rabrowne85

Http::allowStrayRequests([
    'http://127.0.0.1:13714/*',
]);

The Http::allowStrayRequests method now accepts an argument that allows you to specify URLs that tests are allowed to send requests to when using Http::preventStrayRequests.

Originalquelle(öffnet in neuem Tab)Problem melden