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

Octane: Nativer File Watcher von FrankenPHP

Octane verwendet zum Neuladen des Servers bei Dateiänderungen nun den nativen File Watcher von FrankenPHP, wodurch die NodeJS-Abhängigkeit entfällt.

Pull request by @kohenkatz

Octane now relies on FrankenPHP’s native file watcher for reloading the server on file changes. This removes the NodeJS dependency and eases the local development process significantly.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel

Inertia: Formularstatus und Fehler mit einer Methode zurücksetzen

Mit der neuen Methode form.resetAndClearErrors() lassen sich alle Felder und Fehler eines Formulars in einem Schritt zurücksetzen.

Pull request by @pascalbaljet

const form = useForm({ name: "", email: "" });

// Instead of:
form.reset();
form.clearErrors();

// You can now:
form.resetAndClearErrors();

You can now concisely reset all fields and errors in one go, bringing your form back to square one.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel

Inertia: Keine minifizierten JavaScript-Builds mehr

Inertia liefert keine minifizierten Builds mehr aus, was das Debugging vereinfacht und bei Bedarf lokales Patchen ermöglicht.

Pull request by @pascalbaljet

Inertia no longer distributes minified builds, aligning it with the strategy of other popular libraries. This makes debugging more straightforward and allows for local patching if the need arises.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel Framework von Laravel

Laravel 12.x: Verbose-Ausgabe für queue:work

Mit --verbose zeigt queue:work nun Queue-Namen neben Job und Job-ID an, 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 12.x: Uri implementiert JsonSerializable

Ein Serialisierungsfehler wurde behoben, sodass ein Uri in einem größeren JSON-Objekt korrekt als 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 12.x: Str::doesntStartWith und doesntEndWith

Die neuen Str-Methoden doesntStartWith() und doesntEndWith() sind das Gegenstück zu startsWith/endsWith.

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

pluck() unterstützt Closures

Mit pluck() lassen sich Schlüssel und Werte jetzt dynamisch über Callbacks erzeugen, sodass kein separates Mapping vorab 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 über den Parallel-Runner 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 .

Herd Windows von Laravel

Herd Windows 1.21.0: Neue Funktionen

PHP 8.5 alpha1 ist verfügbar, die Dumps-Oberfläche erkennt Laravel-Cache-Aktivitäten, Onboarding erlaubt einen anderen Park-Pfad, und frische Installationen können den Herd-Pfad automatisch von Windows Defender ausschließen.

New features

  • You can now start using PHP 8.5 alpha1!
  • The Dumps UI can now detect Laravel Cache activity
  • Onboarding now allows users to select a different path to park instead of ~/Herd

Fixes and Improvements

  • Fresh installations can now automatically exclude the Herd path from Windows Defender to improve PHP performance

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Herd Macos von Laravel

Herd macOS 1.21.0: Neue Funktionen

PHP 8.5 alpha1 ist verfügbar, die Dumps-Oberfläche erkennt Laravel-Cache-Aktivitäten, Onboarding erlaubt einen anderen Park-Pfad, Zed ist als IDE hinzugekommen, und die Shortcut-Einstellungen sind horizontal skalierbar.

New features

  • You can now start using PHP 8.5 alpha1!
  • The Dumps UI can now detect Laravel Cache activity
  • Onboarding now allows users to select a different path to park instead of ~/Herd

Fixes and Improvements

  • Zed is added to the list of available IDEs
  • The shortcut settings are horizontally resizable

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: encrypt() und decrypt() für Str

Die Methoden encrypt() und decrypt() lassen sich jetzt direkt an einer Str-Instanz verketten, sodass keine separaten Verschlüsselungsaufrufe nötig sind.

Pull request by @KIKOmanasijev

You can now chain encrypt() and decrypt() directly on a Str instance, so instead of piping your string through separate encryption calls, you can write:

$value = Str::of('secret')->encrypt()->prepend('Encrypted: ');
$original = Str::of($value)->decrypt();

This keeps your string-manipulation chains concise (no need to write separate, extra code to handle encryption) and you don’t have to manually wrap a value in encryption calls each time.

Learn more about encrypt and decrypt

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: broadcast_if() und broadcast_unless()

Mit den neuen Helfern broadcast_if() und broadcast_unless() lässt sich bedingtes Broadcasting in einem einzigen Aufruf statt in mehrzeiligen Bedingungen umsetzen.

Pull request by @taylorotwell

You now have two methods for conditional broadcasting in a single call:

broadcast_if($order->isPaid(), new OrderShipped($order));
broadcast_unless($user->isActive(), new InactiveUserAlert($user));

This replaces multi-line conditionals around broadcast() and makes your event logic more readable, improving the overall developer experience.

Read the docs about event broadcasting in Laravel

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: Flag --batched für make:job

php artisan make:job akzeptiert jetzt die Option --batched und erzeugt den Job direkt mit dem bereits eingebundenen Batchable-Trait.

Pull request by @hafezdivandari

The php artisan make:job command now accepts a --batched option:

php artisan make:job ProcessPodcast --batched

This command scaffolds the job with the Batchable trait already applied, so you don’t have to add it manually. It saves you a manual step and ensures consistency.

Learn more about defining batchable jobs

VS Code Performance Improvements

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel

VS Code Extension: Speicherverbesserungen

Ein Memory Leak in den Hintergrundprozessen der Extension wurde behoben, wodurch der Speicherbedarf sinkt und Verlangsamungen in langen Sitzungen vermieden werden.

Pull request by @joetannenbaum

We fixed a memory-leak issue in the extension’s background processes, reducing its long-term footprint and preventing slowdowns during extended coding sessions.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel

VS Code Extension: Schnellerer Start

Die Initialisierung der Laravel VS Code Extension dauert nun unter einer Sekunde statt 5–7 Sekunden, weil aufwendige Einrichtung erst bei Bedarf erfolgt.

Pull request by @joetannenbaum

Initialization with the VS Code extension now completes in under one second (down from 5–7 seconds) by deferring heavy setup until it’s actually needed. You’ll notice the extension loads almost instantly so you can start building faster.

Get started with the Laravel VS Code extension

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel

Inertia: deepMerge mit matchOn für eigene Properties

Beim Zusammenführen paginierter Daten, etwa bei Infinite Scrolling, kann über matchOn ein Schlüssel für einen Deep Merge angegeben werden, sodass Einträge per ID ersetzt oder angehängt und Duplikate vermieden werden.

Pull request by @mpociot

When implementing infinite scrolling with Inertia or other paginated data merges, you can now specify a key (matchOn) to do a deep merge, matching items by ID and replacing or appending as appropriate. This provides greater flexibility, prevents duplicated entries, and keeps your client-side data consistent.

Inertia::render('Users/Index', [
    'users' => Inertia::deepMerge($users)->matchOn('data.id'),
]);

Learn more in the Inertia docs

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel

Inertia: Doppeltes Rendern in React verhindert

Ein React-spezifisches Problem in <StrictMode> wurde behoben, bei dem die initiale Inertia-Seite zweimal gerendert wurde.

Pull request by @pascalbaljet

We fixed a React-specific issue in <StrictMode> where the initial Inertia page would render twice. Now you get a single, clean first render without flicker, improving perceived performance.

Get started with the Laravel + React Starter Kit

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel Framework von Laravel

Laravel 12.x: encrypt() und decrypt() für Str

Die String-Helfer encrypt() und decrypt() lassen sich jetzt direkt an einer Str-Instanz verketten.

Pull request by @KIKOmanasijev

You can now chain encrypt() and decrypt() directly on a Str instance, so instead of piping your string through separate encryption calls, you can write:

$value = Str::of('secret')->encrypt()->prepend('Encrypted: ');
$original = Str::of($value)->decrypt();

This keeps your string-manipulation chains concise (no need to write separate, extra code to handle encryption) and you don’t have to manually wrap a value in encryption calls each time.

Learn more about encrypt and decrypt

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel Framework von Laravel

Laravel 12.x: broadcast_if() und broadcast_unless() hinzugefügt

Mit den neuen Hilfsfunktionen broadcast_if() und broadcast_unless() lässt sich bedingtes Broadcasting in einem einzigen Aufruf statt mit mehrzeiligen Bedingungen um broadcast() herum umsetzen.

Pull request by @taylorotwell

You now have two methods for conditional broadcasting in a single call:

broadcast_if($order->isPaid(), new OrderShipped($order));
broadcast_unless($user->isActive(), new InactiveUserAlert($user));

This replaces multi-line conditionals around broadcast() and makes your event logic more readable, improving the overall developer experience.

Read the docs about event broadcasting in Laravel

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel Framework von Laravel

make:job unterstützt jetzt die Option --batched

Der Befehl php artisan make:job akzeptiert nun die Option --batched und erzeugt den Job direkt mit dem bereits eingebundenen Batchable-Trait.

Pull request by @hafezdivandari

The php artisan make:job command now accepts a --batched option:

php artisan make:job ProcessPodcast --batched

This command scaffolds the job with the Batchable trait already applied, so you don’t have to add it manually. It saves you a manual step and ensures consistency.

Learn more about defining batchable jobs

VS Code Performance Improvements

Originalquelle(öffnet in neuem Tab)Problem melden