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

Weitere Editoren in ResolvesDumpSource unterstützt

Für app.editor gibt es neue Konfigurationswerte, damit Dumps auch für neovim, zed, kiro, fleet und windsurf korrekt verlinken.

Pull requests by @cseknowledge, @miguilimzero, @OmarFaruk-0x01, @Sajid-al-islam, and @Rakib01

Several PRs introduced new config values for app.editor, allowing dumps to link correctly for several new IDEs: neovim, zed, kiro, fleet, and windsurf.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel Framework von Laravel

Klickbare Dateireferenz auf der Exception-Seite

Die neue Exception-Seite zeigt nun eine Dateireferenz mit Zeilennummer an, die die Datei direkt in der gewählten IDE öffnet.

Pull request by @jasonmccreary

The recently introduced new exception page now includes a new file reference and line number that opens the file directly in your IDE of choice.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel Framework von Laravel

messageGroup()-Methode für SQS FIFO und Fair Queues

Statt onGroup() beim Dispatch lässt sich nun direkt in der Job-Klasse eine messageGroup()-Methode definieren, was die Inkonsistenz zu Event-Listenern beseitigt.

Pull request by @patrickcarlohickman

Instead of using the onGroup() method at the time of dispatch, you can now define a messageGroup() directly method on the job class, removing an inconsistency where event listeners supported the messageGroup() method on the class, but all the other job types required calling onGroup().

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel Framework von Laravel

Deferred Queue für verzögerte synchrone Jobs

Über die deferred-Connection lassen sich Jobs im aktuellen Prozess erst nach dem Senden der HTTP-Antwort synchron verarbeiten.

Pull request by @taylorotwell

Using deferred synchronous dispatching, you can dispatch a job to be processed during the current process, but after the HTTP response has been sent to the user. This allows you to process "queued" jobs synchronously without slowing down your user's application experience. To defer the execution of a synchronous job, dispatch the job to the deferred connection:

RecordDelivery::dispatch($order)->onConnection('deferred');

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel Framework von Laravel

Neuer Failover-Cache-Treiber

Der failover-Cache-Treiber wechselt automatisch zum nächsten konfigurierten Store, falls der primäre Cache-Store ausfällt.

Pull request by @taylorotwell

The failover cache driver provides automatic failover functionality when interacting with the cache. If the primary cache store fails for any reason, Laravel will automatically attempt to use the next configured store in the list. This is particularly useful for ensuring high availability in production environments where cache reliability is critical.

'failover' => [
    'driver' => 'failover',
    'stores' => [
        'database',
        'array',
    ],
],

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel Framework von Laravel

PostgreSQL 18: Virtual Columns im Laravel Framework 12.x

Der Spaltenmodifikator virtualAs unterstützt jetzt abwärtskompatibel die in PostgreSQL 18 eingeführten virtuell generierten Spalten.

Pull request by @tpetry

PostgreSQL 18 was recently released, along with it support for virtual generated columns. The virtualAs column modifier now has backwards compatible support this new PostgreSQL feature.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel Framework von Laravel

Failover-Queue-Treiber im Laravel Framework 12.x

Der neue failover-Queue-Treiber versucht beim Pushen eines Jobs automatisch die nächste konfigurierte Verbindung, wenn die primäre Queue-Verbindung ausfällt.

Pull request by @taylorotwell

The failover queue driver provides automatic failover functionality when pushing jobs to the queue. If the primary queue connection fails for any reason, Laravel will automatically attempt to push the job to the next configured connection in the list. This is particularly useful for ensuring high availability in production environments where queue reliability is critical.

'failover' => [
    'driver' => 'failover',
    'connections' => [
        'redis',
        'database',
        'sync',
    ],
],

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel Framework von Laravel

Methode defer für HTTP Batch in Laravel 12.x

Mit der neuen Methode defer auf Http::batch wird der Batch von Requests erst ausgeführt, nachdem die HTTP-Antwort an den Nutzer gesendet wurde.

Pull request by @WendellAdriel

When the new defer method is invoked on Http::batch, the batch of requests is not executed immediately. Instead, Laravel will execute the batch after the current application request's HTTP response has been sent to the user, keeping your application feeling fast and responsive:

use Illuminate\Http\Client\Batch;
use Illuminate\Support\Facades\Http;

$responses = Http::batch(fn (Batch $batch) => [
    $batch->get('http://localhost/first'),
    $batch->get('http://localhost/second'),
    $batch->get('http://localhost/third'),
])->then(function (Batch $batch, array $results) {
    // All requests completed successfully...
})->defer();

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel

Inertia: Globale Standardwerte und Änderung zur Laufzeit

Inertia unterstützt nun app-weite Standardwerte über die Option defaults in createInertiaApp(), und jeder Adapter exportiert eine config-Instanz, um Werte zur Laufzeit zu ändern.

Pull request by @pascalbaljet

Inertia now supports setting app-wide defaults, with the ability to update values at runtime. You can pass a default config object to the createInertiaApp() method:

createInertiaApp({
    // resolve, setup, etc.
    defaults: {
        form: {
            recentlySuccessfulDuration: 5_000,
        },
        prefetch: {
            cacheFor: 60_000,
        },
        visitOptions: (href: string, options: VisitOptions) => {
            return { headers: { ...options.headers, "X-Foo": "Bar" } };
        },
    },
});

Each adapter now also exports a config instance to update any values at runtime:

import { config } from "@inertiajs/vue3";

config.set("form.recentlySuccessfulDuration", 1000);

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel

Inertia: Typisierung von Shared Page Props mit usePage()

usePage() unterstützt jetzt eine globale Typdefinitionsdatei, sodass Shared Page Props in der gesamten App automatisch typisiert sind.

Pull request by @pascalbaljet

usePage() now supports a global type definition file, allowing you to type-hint shared page props:

// resources/js/types/globals.d.ts

declare module "@inertiajs/core" {
    export interface InertiaConfig {
        sharedPageProps: {
            auth: { user: { id: number; name: string } | null };
            flash: { success?: string; error?: string };
        };
    }
}

Shared page props are now automatically type-hinted throughout the app when you use usePage():

const page = usePage();
const successMessage = page.props.flash.success;

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel

Boost: Dynamische Erkennung des NPM-Paketmanagers

Boost erkennt nun, welcher Paketmanager (npm, pnpm, yarn oder bun) zum Ausführen von Skripten genutzt werden soll, damit die KI die passenden CLI-Tools verwendet.

Pull request by @imliam

Boost now detects which NPM package manager should be used to run any given script (npm, pnpm, yarn and bun). This assists the AI in using the correct CLI tools when running npm commands based on the project's existing dependencies.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel

Boost: Unterstützung für eigene Code-Umgebungen

Für Boost lassen sich nun eigene Code-Umgebungen (IDEs und KI-Agenten) erstellen und mit Boost::registerCodeEnvironment registrieren, statt nur eine fest hinterlegte Liste zu nutzen.

Pull request by @pushpak1300

You can now create custom code environments (IDEs and AI agents) for Boost. Previously, Boost only supported a hardcoded list of environments, which made it difficult to add support for new IDEs or agents directly within the official Boost repository.

use Laravel\Boost\Contracts\Agent;
use Laravel\Boost\Contracts\McpClient;
use Laravel\Boost\Install\CodeEnvironment\CodeEnvironment;

class MyCustomIDE extends CodeEnvironment implements Agent, McpClient
{
    // Implementation
}

Registering your custom code environment:

use Laravel\Boost\Boost;

Boost::registerCodeEnvironment('myide', MyCustomIDE::class);

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel

Laravel Fortify: KI-Guidelines für Boost

Für Fortify wurden KI-Guidelines hinzugefügt, die über die Third-Party Package AI Guidelines von Laravel Boost optional genutzt werden können.

Pull request by @pushpak1300

AI guidelines were added which can be used by Laravel Boost's Third-Party Package AI Guidelines. This is completely opt-in for each user, they can choose if they want additional intelligence around Fortify's usage with their Laravel application.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel

Horizon: Instanzen können benannt werden

Horizon-Instanzen können nun einen Namen erhalten, der in Benachrichtigungen wie „Long Wait Detected“ angezeigt wird, um die Herkunft leichter zu erkennen.

Pull request by @timacdonald

When you have several Horizon instances running in different regions, all within a single application, it can be difficult to determine with instance of Horizon a notification is originating from. You can now specify a name for each instance, making identification straightforward.

Before:

Long Wait Detected
[Nightwatch] The "{queue}" queue on the "{connection}" connection has a wait time of {seconds} seconds.

After:

Long Wait Detected
[eu-central-1] The "{queue}" queue on the "{connection}" connection has a wait time of {seconds} seconds.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel

Laravel Installer: Flags für alternative Node-Paketmanager

Bei laravel new lässt sich mit --npm, --pnpm, --bun oder --yarn der Node-Paketmanager wählen, und composer-Skripte mit Node-Befehlen werden entsprechend angepasst.

Pull request by @joetannenbaum

When running laravel new, there are now additional flags you can pass to specify which Node package manager you'd like to use: --npm, --pnpm, --bun, or --yarn. Passing one of these flags will also update any composer script that references a Node command to reflect the correct command specific to the selected package manager.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel

Starter Kits nutzen Fortify für Authentifizierungsfunktionen

Alle Starter Kits verwenden jetzt Fortify für Login, Registrierung, Passwort-Zurücksetzen und E-Mail-Verifizierung, wodurch weniger eigener Code in der Anwendung liegt.

Pull requests by @pushpak1300

All starter kits now use Fortify for login, registration, password reset, and email verification. Fortify is a battle-tested solution, removing code from your codebase that is rarely changed, keeping your application code streamlined and maintainable.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel

Scout: Verbesserungen bei der Volltextsuche

Bei der database-Engine akzeptiert orWhereFullText nun mehrere Spalten in einem Aufruf, und unter Postgres wird ohne andere Sortierung standardmäßig nach Relevanz sortiert, passend zum Verhalten von MySQL.

Pull request by @taylorotwell

Several improvements to full-text support were added when using the database engine. First up, you can now pass multiple columns to orWhereFullText in a single call. Secondly, when using Postgres and no other developer-provided ordering has been defined, Scout automatically adds relevance-based ordering by default to match MySQL's built-in ordering behavior.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel Framework von Laravel

Weitere Editoren in ResolvesDumpSource unterstützt

Neue Werte für app.editor ermöglichen korrekte Dump-Links für die Editoren neovim, zed, kiro, fleet und windsurf.

Pull requests by @cseknowledge, @miguilimzero, @OmarFaruk-0x01, @Sajid-al-islam, and @Rakib01

Several PRs introduced new config values for app.editor, allowing dumps to link correctly for several new IDEs: neovim, zed, kiro, fleet, and windsurf.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel Framework von Laravel

SQS FIFO und Fair Queue: messageGroup()-Methode auf Job-Klassen

Statt onGroup() beim Dispatch aufzurufen, kann nun direkt in der Job-Klasse eine messageGroup()-Methode definiert werden, was eine Inkonsistenz zu Event-Listenern beseitigt.

Pull request by @patrickcarlohickman

Instead of using the onGroup() method at the time of dispatch, you can now define a messageGroup() directly method on the job class, removing an inconsistency where event listeners supported the messageGroup() method on the class, but all the other job types required calling onGroup().

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel Framework von Laravel

Rate Limiting mit after-Hook im Laravel Framework 12.x

Der neue Hook RateLimiter::after ermöglicht Rate Limiting nicht nur anhand der Anfrage, sondern auch anhand der Antwort, etwa bei 404-Statuscodes.

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