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 Framework von Laravel

Laravel 12.x: withHeartbeat für LazyCollection

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 12.x: Methode toPrettyJson

Die neue Methode toPrettyJson() ersetzt den Aufruf 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: URLs für Http::allowStrayRequests erlaubt

Http::allowStrayRequests akzeptiert jetzt ein Argument, um URLs festzulegen, an die Tests bei aktivem Http::preventStrayRequests weiterhin Anfragen 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

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel Framework von Laravel

Laravel 12.x: mergeVisible, mergeHidden und mergeAppends

Eloquent-Modelle erhalten die neuen Hilfsmethoden mergeVisible, mergeHidden und mergeAppends, passend zu bestehenden Helfern wie mergeCasts, mergeFillable und mergeGuarded.

Pull request by @jonerickson

protected function initializeTwoFactorAuthentication(): void
{
    $this->mergeHidden([
        'app_authentication_secret',
        'app_authentication_recovery_codes',
    ]);

    $this->mergeCasts([
        'app_authentication_secret' => 'encrypted',
        'app_authentication_recovery_codes' => 'encrypted:array',
    ]);
}

Additional attribute helper methods added to Eloquent models for merging visibility-related arrays, bringing them in line with existing helpers like mergeCasts, mergeFillable, and mergeGuarded.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel Framework von Laravel

Neue Methode Arr::push()

Die neue Arr-Methode push() fügt einem Array einen Wert hinzu und legt das Array zuvor als leeres Array an, falls es nicht existiert.

Pull request by @inxilpro

if ($this->hasChanges($data)) {
    Arr::push($result, 'pending.changes', $data);
}

A new Arr method that allows you to push something to an array if the array exists, or initialize it to an empty array and then push to it if it doesn't.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel

Inertia: neue Form-Komponente

Die neue <Form>-Komponente verhält sich wie ein klassisches HTML-Formular, lässt Inertia den Netzwerkaufruf beim Absenden abfangen und reduziert den Boilerplate-Code für Formulare deutlich.

Pull request by @pascalbaljet

<script setup>
import { Form } from "@inertiajs/vue3";
</script>

<template>
    <Form action="/users" method="post">
        <input type="text" name="name" />
        <input type="email" name="email" />
        <button type="submit">Create User</button>
    </Form>
</template>

A new <Form> component that behaves much like a classic HTML form and simply allows Inertia to intercept the network call on form submission. This new component greatly reduces the boilerplate needed to create a form with Inertia.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel

Inertia: Link-Komponente unterstützt eigene Komponenten

Die Inertia-Komponente Link unterstützt über die Prop as nun auch eigene Komponenten statt nur HTML-Tags wie a oder button.

Pull request by @pascalbaljet

<Link as={CustomButton} method="post" href="/user" data={{ test: "data" }}>
    Custom Component with Data
</Link>

The Inertia Link component now supports custom components instead of just HTML tags such as a or button.

Laravel Boost was released this month! Not only was it just released, it is already aware and up-to-date with the just-released Pest 4 and Filament 4.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel

Boost: Option enabled in der Konfiguration

Mit der neuen Option config('boost.enabled') lässt sich Boost unabhängig von Umgebungseinschränkungen gezielt aktivieren oder deaktivieren.

Pull request by @xiCO2k

Adds a config('boost.enabled') option to allows users to specifically enable/disable Boost in certain scenarios outside of environment constraints.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel

Boost-Guidelines: Pint mit --dirty-Flag

Die Boost-Guidelines bevorzugen nun die Nutzung von Pint mit dem Flag --dirty für sauberere Diffs und Pull Requests.

Pull request by @yitzwillroth

Updates Boost guidelines to prefer the usage of Pint with the --dirty flag for cleaner diffs and PRs.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel

Starter Kits: useForm durch Inertia Form ersetzt

In den Starter Kits wird useForm durch die neue Inertia-Komponente Form ersetzt, was den Boilerplate-Code aller Formulare reduziert.

Pull request by @joetannenbaum

import { Form } from "@inertiajs/react";

export default function Login() {
    return (
        <Form action="/login" method="post">
            {/* Form fields */}
        </Form>
    );
}

Reduces the boilerplate for all forms in the starter kits by replacing useForm with the new Inertia Form component.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel

Autovervollständigung für Route::is und routeIs

Für die Methoden Route::is und routeIs gibt es nun vollständige Autovervollständigung und Verlinkung.

Pull request by @N1ebieski

Full autocomplete and linking support for the Route::is and routeIs methods.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Herd Macos von Laravel

Herd macOS 1.22.1: Fehlerbehebungen

Der MCP-Server unterstützt nun Junies MCP-Protokollversion, E-Mails ohne Message-ID werden korrekt aktualisiert und die Dump-Abfangfunktion gibt die Werte wie erwartet zurück.

Fixes and Improvements

  • The MCP server now supports Junie's MCP protocol version
  • We fixed an issue where mails without the Message-ID header would not update in the UI properly
  • When toggling the dump interception, the dump calls behave as they should and return the dumped values.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Herd Windows von Laravel

Herd Windows 1.22.0: Neue Funktionen

Herd enthält jetzt einen MCP-Server, der KI-Clients Tools und Ressourcen zur Verwaltung von Sites, Diensten und PHP-Versionen bereitstellt; außerdem wurden Fehler bei der PHP-Installation behoben und die cacert.pem-Datei aktualisiert.

New Features

Herd now ships with an MCP server that gives your AI clients tools and resources to interact with Herd, manage sites, services, PHP versions and much more.

Fixes and Improvements

  • Fixed a bug where no error was shown when a PHP version could not be installed
  • Updated the built-in cacert.pem file

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Herd Macos von Laravel

Herd macOS 1.22.0: Neue Funktionen

Herd enthält jetzt einen MCP-Server für KI-Clients zur Verwaltung von Sites und Diensten; außerdem wurden Onboarding-Schleife mit Valet, falsche IDE-Auswahl und cacert.pem aktualisiert.

New Features

Herd now ships with an MCP server that gives your AI clients tools and resources to interact with Herd, manage sites, services, PHP versions and much more.

Fixes and Improvements

  • Fixed onboarding loop when Valet is detected
  • Fixed a bug where the wrong IDE opened when clicking on file locations in dumps
  • Updated the built-in cacert.pem file

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: Ausführliche Ausgabe für queue:work

Mit php artisan queue:work --verbose werden jetzt Queue-Namen neben jedem Job und dessen Job-ID angezeigt, was das Debugging mit mehreren Queues erleichtert.

Pull requests by @seriquynh & @amirhshokri

php artisan queue:work --verbose
// App\Jobs\UrgentAction 85 high
// App\Jobs\NormalAction 84 default

With --verbose, you’ll now see queue names alongside each job and job ID, making multi-queue debugging straightforward and saving you time when tracing issues.

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: Uri implementiert JsonSerializable

Ein Serialisierungsfehler wurde behoben, sodass eine Uri beim Serialisieren eines größeren JSON-Objekts korrekt in einen String umgewandelt wird.

Pull request by @devajmeireles

echo json_encode(new Uri('/path?x=1'));
// "http://localhost:8000/path?x=1"

This release fixes a serialization bug, properly converting the URI to a string when serializing a larger JSON object that contains the URI as a value.

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 Str-Methoden doesntStartWith() und doesntEndWith()

Die neuen Str-Methoden doesntStartWith() und doesntEndWith() bilden das Gegenstück zu startsWith/endsWith und prüfen fließend, womit ein String nicht beginnt oder endet.

Pull request by @balboacodes

str('apple')->doesntStartWith('b'); // true
str('apple')->doesntEndWith('e'); // false

The inverse of startsWith/endsWith, these new methods allow you to fluently test for starting and ending characters in your string.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel Framework von Laravel

Closure-Unterstützung in pluck()

Mit pluck() lassen sich Schlüssel und Werte jetzt über Callbacks dynamisch erzeugen, sodass kein separates Mapping vor dem Plucken mehr nötig ist.

Pull request by @ralphjsmit

$users->pluck(fn($u) => $u->email, fn($u) => strtoupper($u->name));

You can now dynamically generate keys and values via callbacks. Instead of mapping then plucking, you get a single, flexible method that reduces steps and keeps intent clear.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel

Pint: Neue Option --parallel

Pint formatiert Dateien mit der neuen Option --parallel dank des parallelen Runners von PHP CS Fixer gleichzeitig, was bei großen Codebasen deutlich schneller ist.

Pull request by @nunomaduro

./vendor/bin/pint --parallel

By leveraging PHP CS Fixer’s parallel runner, Pint now formats files concurrently. On large codebases that once took minutes, you’ll see results in seconds, speeding up both local workflows and CI pipelines for a clear quality of life win.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel

Telescope: Frontend auf Vite umgestellt

Das Frontend von Telescope nutzt jetzt Vite statt Mix, wodurch Asset-Builds schneller laufen und Hot-Reloads zuverlässiger sind, ohne dass sich der Workflow ändert.

Pull request by @nckrtl

Telescope’s frontend now uses Vite instead of Mix. Asset builds finish faster, hot-reloads are more reliable, and you benefit from a modern toolchain without changing your workflow.

Originalquelle(öffnet in neuem Tab)Problem melden