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

attachFromStorage-Helfer für Notification MailMessage

MailMessage in Notifications bietet nun attachFromStorage() und attachFromStorageDisk(), um Dateien direkt aus dem Storage anzuhängen, wie es bei Mailable schon möglich war.

Pull request by @LucasCavalheri

MailMessage in notifications now has attachFromStorage() and attachFromStorageDisk() methods, matching what Mailable has offered for a while. Attach invoices, reports, or any file from your storage layer without having to read the contents yourself first.

(new MailMessage)
    ->attachFromStorage('invoices/1.pdf')
    ->attachFromStorageDisk('s3', 'invoices/1.pdf', 'Invoice.pdf', [
        'mime' => 'application/pdf',
    ]);

Originalquelle(öffnet in neuem Tab)Problem melden

Laravel Framework von Laravel

Multi-Type-Unions in Illuminate\JsonSchema

Illuminate\JsonSchema kann nun Schemas mit mehreren Typen im Feld type (z. B. ['string', 'number', 'boolean']) darstellen, statt wie bisher eine Exception zu werfen.

Pull request by @pushpak1300

Illuminate\JsonSchema can now represent multi-type union schemas - schemas where the type field is an array like ['string', 'number', 'boolean']. This comes up frequently with third-party MCP tool schemas where mixed types are common. Previously these would throw an exception; now they deserialize, serialize, and round-trip correctly.

// Now works where it used to throw
JsonSchema::fromArray(['type' => ['string', 'number', 'boolean']]);

// Or build one directly
JsonSchema::union(['string', 'number'])->nullable();

Originalquelle(öffnet in neuem Tab)Problem melden

Laravel Framework von Laravel

Cache::rememberWithState()

Cache::rememberWithState() liefert neben dem gecachten Wert auch einen booleschen Hinweis, ob es ein Treffer oder Fehlschlag war.

Pull request by @cosmastech

Cache::rememberWithState() returns both the cached value and a boolean indicating whether it was a hit or miss - useful for debugging, recording cache metrics, or surfacing cache status in response headers without having to check the cache twice.

Originalquelle(öffnet in neuem Tab)Problem melden

Laravel Framework von Laravel

Parameter normalize für Str::studly() und Str::pascal()

Mit normalize: true werden komplett großgeschriebene Wortsegmente vor der Umwandlung kleingeschrieben, sodass etwa aus CBOR das Ergebnis Cbor wird.

Pull request by @hotmeteor

All-uppercase strings like CBOR or ALL_CAPS now have a path through Str::studly() and Str::pascal() that produces the expected output. Pass normalize: true and any fully-uppercased word segment gets lowercased before conversion - mixed-case strings are left alone as before.

Str::studly('CBOR', normalize: true)      // 'Cbor'
Str::studly('ALL_CAPS', normalize: true)  // 'AllCaps'
Str::studly('AllJersey', normalize: true) // 'AllJersey' (unchanged)

Originalquelle(öffnet in neuem Tab)Problem melden

Laravel Framework von Laravel

Client\Request::uri() im HTTP-Client

Das Request-Objekt des HTTP-Clients hat jetzt eine uri()-Methode, die eine Illuminate\Support\Uri-Instanz zurückgibt und Prüfungen in Http::assertSent() vereinfacht.

Pull request by @stevebauman

The HTTP client's Request object now has a uri() method that returns an Illuminate\Support\Uri instance, consistent with the uri() method already available on Illuminate\Http\Request. This makes Http::assertSent() callbacks a lot cleaner when you need to inspect the URL.

Http::assertSent(function (Request $request) {
    return $request->uri()->path() === '/api/users'
        && $request->uri()->query()->integer('page') === 2;
});

Originalquelle(öffnet in neuem Tab)Problem melden

Laravel

Inertia: Page-Objekt im titleCallback

Die Funktion titleCallback erhält nun das vollständige page-Objekt als zweites Argument, sodass Page Props und Metadaten für den Dokumenttitel nutzbar sind.

Pull request by @mrleblanc101

The titleCallback function now receives the full current page object as a second argument, giving you access to page props and metadata when constructing the document title. Useful when you want to build a title from data that lives on the page rather than just the title string itself.

Originalquelle(öffnet in neuem Tab)Problem melden

Laravel

Inertia: async-Option in FormComponentOptions

Die async-Option wird bei einer <Form>-Komponente nicht mehr verworfen, sondern in FormComponentOptions aufgenommen und an den zugrunde liegenden Visit weitergereicht.

Pull request by @sawirricardo

The async visit option was silently dropped when passed to a <Form> component, meaning options={{ async: true }} had no effect and forms always submitted synchronously. The option is now properly included in FormComponentOptions and passed through to the underlying visit.

Originalquelle(öffnet in neuem Tab)Problem melden

Laravel

Inertia: onSuccess-Callback von Form wird abgewartet

Gibt der onSuccess-Callback einer <Form> ein Promise zurück, wird dieses nun abgewartet, bevor der processing-Status zurückgesetzt wird.

Pull request by @mattwigham

If your <Form> component's onSuccess callback returned a Promise - say, polling a background job before reloading - the form's processing state would clear before that async work finished. This made disableWhileProcessing unreliable and any UI tied to processing behave unexpectedly. The fix is simple: the callback is now properly awaited before the form marks itself as done.

Originalquelle(öffnet in neuem Tab)Problem melden

Laravel

Inertia: Props im withApp-Callback

Der withApp-Callback erhält jetzt die initialen Page Props, wie es zuvor beim älteren setup-Callback möglich war.

Pull request by @CL0Pinette

The withApp callback now receives the initial page props, giving you access to data like the user's locale or other bootstrapped values at app setup time. This restores a capability that existed in the older setup callback before withApp was introduced.

Originalquelle(öffnet in neuem Tab)Problem melden

Laravel

Boost: Pint läuft standardmäßig mit --dirty

Die Pint-Integration von Boost verwendet standardmäßig --dirty, sodass nur geänderte Dateien formatiert werden, was zusammen mit --parallel die Formatierung deutlich beschleunigt.

Pull request by @calebdw

Boost's Pint integration now runs with --dirty by default, so only files that have actually changed get formatted. Combined with --parallel, formatting is significantly faster in agentic workflows where only a handful of files are touched per turn.

Originalquelle(öffnet in neuem Tab)Problem melden

Laravel

useSocketId()-Hook für React, Vue und Svelte (Echo)

Die drei Echo-Adapter für React, Vue und Svelte liefern einen reaktiven Hook useSocketId(), der die aktuelle Socket-ID bereitstellt und sich bei erneuter Verbindung automatisch aktualisiert.

Pull request by @hectorgrecco

All three Echo framework adapters now ship a useSocketId() reactive hook that gives you the current socket ID and automatically updates when the connection reconnects with a new one. Pass it in an X-Socket-Id header to prevent your own broadcast events from being received back.

// React
import { useSocketId } from "@laravel/echo-react";
const socketId = useSocketId();

// Vue
import { useSocketId } from "@laravel/echo-vue";
const socketId = useSocketId(); // ComputedRef<string | undefined>

// Svelte
import { useSocketId } from "@laravel/echo-svelte";
const socketId = useSocketId(); // getter function

Originalquelle(öffnet in neuem Tab)Problem melden

Laravel

Sail: Build-Argument PHP_EXTENSIONS für zusätzliche PHP-Extensions

Über das Build-Argument PHP_EXTENSIONS in docker-compose.yml lassen sich zusätzliche PHP-Extensions in Sail installieren, ohne das Dockerfile zu veröffentlichen und zu bearbeiten.

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

Herd Macos von Laravel

Herd 1.29.0 mit neuen Funktionen

Herd 1.29.0 fügt Forge-Organisationen, den Befehl zum Aktualisieren aller PHP-Versionen und eine Schaltfläche zum Kopieren der Mailserver-Umgebungsvariablen hinzu.

New Features

  • The Laravel Forge integration now supports organizations
  • Added herd php:update all to update every installed PHP version in a single command
  • Added a button to copy the mail server's environment variables directly from the Mail window

Fixes and Improvements

  • Migrated the Laravel Forge integration to the v2 API with granular OAuth scopes and automatic token refresh; integrations that to update the scopes show a Reconnect option
  • The "intercept dumps" toggle is now remembered across app launches
  • Improved compatibility with macOS 26
  • Fixed an issue where favicon.ico and robots.txt were served with a 404 status
  • Fixed an issue where herd init could fail to isolate PHP when the project's manifest specified a different PHP version
  • Hardened extra service response parsing in herd init
  • Available service versions are now sorted numerically
  • TLS certificates now include X509v3 extensions so they pass OpenSSL strict mode
  • Fixed Typesense failing to start when its data path contained a space and assigned fixed failed peering ports
  • Fixed a missing separator between multiple To and CC addresses in the mail viewer
  • Fixed a mail server crash when a message had no Date header, and added a Message-ID fallback for raw SMTP messages
  • Fixed a truncated "Connect SSH" button and incorrect PHP version display on remote sites
  • Fixed a bug where a Forge connection could not be removed from a site
  • …

Originalquelle(öffnet in neuem Tab)Problem melden

Herd Windows von Laravel

Herd 1.29.0 für Windows

Herd 1.29.0 für Windows fügt Forge-Organisationen, einen Befehl zum Aktualisieren aller PHP-Versionen und eine Schaltfläche zum Kopieren der Mailserver-Umgebungsvariablen hinzu.

New Features

  • The Laravel Forge integration now supports organizations
  • Added herd php:update all to update every installed PHP version in a single command
  • Added a button to copy the mail server's environment variables directly from the Mail window

Fixes and Improvements

  • Migrated the Laravel Forge integration to the v2 API with granular OAuth scopes and automatic token refresh; integrations that need to update the scopes show a Reconnect option
  • Fixed the Forge account settings link opening a 404 page
  • Fixed a missing separator between multiple To and CC addresses in the mail viewer
  • Fixed a mail server crash when a message had no valid Date header, and hardened email processing against errors
  • Added the .mjs MIME type to the bundled Nginx config
  • Improved Craft CMS log viewer detection
  • Hardened site information parsing
  • Security fixes
  • Updated the built-in Forge binary
  • Updated the built-in Composer binary
  • Updated the built-in Laravel Installer
  • Updated the built-in cacert.pem bundle

Originalquelle(öffnet in neuem Tab)Problem melden

Herd Macos von Laravel

2026-06-30

New Features

  • The Laravel Forge integration now supports organizations
  • Added herd php:update all to update every installed PHP version in a single command
  • Added a button to copy the mail server's environment variables directly from the Mail window

Fixes and Improvements

  • Migrated the Laravel Forge integration to the v2 API with granular OAuth scopes and automatic token refresh; integrations that to update the scopes show a Reconnect option
  • The "intercept dumps" toggle is now remembered across app launches
  • Improved compatibility with macOS 26
  • Fixed an issue where favicon.ico and robots.txt were served with a 404 status
  • Fixed an issue where herd init could fail to isolate PHP when the project's manifest specified a different PHP version
  • Hardened extra service response parsing in herd init
  • Available service versions are now sorted numerically
  • TLS certificates now include X509v3 extensions so they pass OpenSSL strict mode
  • Fixed Typesense failing to start when its data path contained a space and assigned fixed failed peering ports
  • Fixed a missing separator between multiple To and CC addresses in the mail viewer
  • Fixed a mail server crash when a message had no Date header, and added a Message-ID fallback for raw SMTP messages
  • Fixed a truncated "Connect SSH" button and incorrect PHP version display on remote sites
  • Fixed a bug where a Forge connection could not be removed from a site
  • …

Originalquelle(öffnet in neuem Tab)Problem melden

Herd Windows von Laravel

2026-06-30

New Features

  • The Laravel Forge integration now supports organizations
  • Added herd php:update all to update every installed PHP version in a single command
  • Added a button to copy the mail server's environment variables directly from the Mail window

Fixes and Improvements

  • Migrated the Laravel Forge integration to the v2 API with granular OAuth scopes and automatic token refresh; integrations that need to update the scopes show a Reconnect option
  • Fixed the Forge account settings link opening a 404 page
  • Fixed a missing separator between multiple To and CC addresses in the mail viewer
  • Fixed a mail server crash when a message had no valid Date header, and hardened email processing against errors
  • Added the .mjs MIME type to the bundled Nginx config
  • Improved Craft CMS log viewer detection
  • Hardened site information parsing
  • Security fixes
  • Updated the built-in Forge binary
  • Updated the built-in Composer binary
  • Updated the built-in Laravel Installer
  • Updated the built-in cacert.pem bundle

1.28.0

Originalquelle(öffnet in neuem Tab)Problem melden

Laravel Framework von Laravel

Laravel 13.x: Blade-Direktive @fonts und Vite-Font-Optimierung

Die neue Blade-Direktive @fonts liest vom Vite-Font-Plugin erzeugte Manifeste und fügt automatisch Preload-Links, Inline-Styles und Push-Header ein, optional beschränkt auf bestimmte Font-Aliase.

Pull request by @WendellAdriel

Loading web fonts has always involved a bit of ceremony - preload links, @font-face rules, HTTP/2 server push headers. The new @fonts Blade directive handles all of that automatically by reading font manifests generated by the Vite font plugin, injecting the right <link rel="preload"> tags, inline styles, and push headers in one shot.

<!DOCTYPE html>
<html>
    <head>
        @fonts
        @vite("resources/js/app.js")
    </head>
</html>

Need only a subset of your configured families on a given page? Pass their aliases:

@fonts(["sans", "mono"])

Originalquelle(öffnet in neuem Tab)Problem melden

Laravel Framework von Laravel

Laravel 13.x: Neuer Cache-Store storage

Das Cache-System unterstützt nun einen dateisystembasierten storage-Treiber, mit dem sich ein vorhandener Disk wie S3 als Key/Value-Cache nutzen lässt.

Pull request by @taylorotwell

Laravel's cache system now supports a storage driver backed by the filesystem, making it straightforward to use an existing disk - like S3 - as a key/value cache without any additional infrastructure.

Originalquelle(öffnet in neuem Tab)Problem melden

Laravel Framework von Laravel

Laravel 13.x: Optionaler Disk-Speicher für große SQS-Queue-Payloads

Über extended_store_options in der SQS-Konfiguration lassen sich Payloads, die das 1-MB-Limit überschreiten, optional auf einen Disk wie S3 auslagern, wobei Worker sie transparent laden.

Pull request by @Orrison

SQS has a 1 MB message size cap, and large job payloads will hit it eventually. This new opt-in feature automatically offloads payloads that exceed the limit to a configured filesystem disk - like S3 - sending a small pointer through the queue instead. Workers pick up the real payload transparently on the other side.

Add an extended_store_options block to your SQS connection config to get started:

'sqs' => [
    // ...
    'extended_store_options' => [
        'enabled' => env('SQS_STORE_ENABLED', false),
        'disk'    => env('SQS_STORE_DISK', 's3'),
        'prefix'  => env('SQS_STORE_PREFIX', ''),
        'always'  => false,
        'cleanup' => true,
    ],
],

Set always to true to route every payload through disk regardless of size. With cleanup enabled, the stored file is removed once the job processes successfully.

Originalquelle(öffnet in neuem Tab)Problem melden

Laravel Framework von Laravel

Laravel 13.x: Password-Regel als passwordrules-String ausgeben

Die neue Methode toPasswordRulesString() an der Password-Regel wandelt Validierungsvorgaben in das HTML-Attribut passwordrules um, damit Passwortmanager passende Passwörter erzeugen können.

Pull request by @imliam

Password managers like 1Password and Safari can read the passwordrules HTML attribute to generate passwords that satisfy your app's policy - no more rejected passwords and frustrated users at registration. The new toPasswordRulesString() method on the Password rule converts your validation constraints into the right format automatically.

<input
    type="password"
    autocomplete="new-password"
    passwordrules="{{ Password::defaults()->toPasswordRulesString() }}"
/>

The method maps directly from your existing validation rules:

Password::min(12)->max(64)->mixedCase()->numbers()->symbols()->toPasswordRulesString()
// 'minlength: 12; maxlength: 64; required: lower; required: upper; required: digit; required: special;'

Originalquelle(öffnet in neuem Tab)Problem melden