Zum Inhalt springen

Laravel Release Notes

173 Einträge aus 4 Quellen. Zuletzt aktualisiert:

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel Framework von Laravel

Laravel Framework Version 13.35.0

Laravel Framework v13.35.0 erlaubt Arrays von Eigenschaften in Fake-Assertions, unterstützt Prozentwerte für queue:work --memory, ergänzt markdown() in der Response-Factory, Schedule::alwaysOnOneServer(), onOneServer in der schedule:list-JSON-Ausgabe sowie die Option lazy_root_creation für local-Disks.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel

Laravel 13.x: Semantische und hybride Suche für Typesense

Die Typesense-Engine von Scout unterstützt jetzt semantic()- und hybrid()-Suchen, wobei Vektoren per Laravel AI, Typesense-Auto-Embedding oder vorberechnet bereitgestellt werden können.

Pull request by @tharropoulos

Scout's Typesense engine now supports semantic() and hybrid() searches. Model embedding settings can use Laravel AI to generate vectors from toSearchableEmbedding() or use Typesense's native auto-embedding; precomputed vectors are also supported. Applications can search by meaning alone or combine semantic matches with text results through the Scout builder.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel

Laravel 13.x: Stabile MariaDB-Vektorabfragen und AsVector-Cast

MariaDB-Vektorabfragen wie whereVectorSimilarTo() und orderByVectorDistance() funktionieren dank vec_fromtext() ohne SQL-Fehler, und der neue Eloquent-Cast AsVector liest und schreibt Vektoren als Float-Arrays.

Pull request by @eas4ai

MariaDB vector distance queries now convert bound vectors with vec_fromtext(), fixing SQL errors when using methods such as whereVectorSimilarTo() and orderByVectorDistance(). The new AsVector Eloquent cast reads MariaDB's binary vectors or PostgreSQL-compatible text vectors as arrays of floats and accepts arrays or Arrayable values when writing them.

use Illuminate\Database\Eloquent\Casts\AsVector;
use Illuminate\Database\Eloquent\Model;

class Document extends Model
{
    protected $casts = [
        'embedding' => AsVector::class,
    ];
}

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel

Laravel 13.x: Dateien zwischen Disks kopieren oder verschieben

Filesystem-Disks bieten neue Methoden copyToDisk() und moveToDisk(), um Dateien optional unter neuem Pfad auf eine andere Disk zu kopieren oder zu verschieben.

Pull request by @jackbayliss

Filesystem disks now expose copyToDisk() and moveToDisk() for transferring files to another configured disk, optionally under a new path. Both methods stream the file and close the stream; moveToDisk() deletes the source only after the copy succeeds.

use Illuminate\Support\Facades\Storage;

Storage::disk('local')->copyToDisk('s3', 'reports/report.csv', 'archive/report.csv');
Storage::disk('local')->moveToDisk('backup', 'reports/report.csv');

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel

Laravel 13.x: Befehle bei php artisan dev auswählen

Mit DevCommands::withoutVendorCommands() und DevCommands::withoutDefaultCommands() lassen sich Vendor- oder Standardbefehle aus php artisan dev ausschließen.

Pull request by @jackbayliss

Applications can now exclude vendor-provided or framework-default development commands from php artisan dev with DevCommands::withoutVendorCommands() and DevCommands::withoutDefaultCommands(). This lets projects keep their own development commands without maintaining a list of every vendor and default command name.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel

Laravel 13.x: Mercure-Broadcasting in Laravel Echo

Laravel Echo enthält einen Mercure-Connector auf Basis der nativen EventSource-API, der private, Presence- und verschlüsselte Channels sowie Whispers unterstützt.

Pull request by @dunglas

Laravel Echo now includes a Mercure connector built on the browser's native EventSource API, without a separate client library. It supports private, presence, and encrypted channels, along with whispers. The hub URL defaults to /.well-known/mercure on the current origin, and the React, Vue, and Svelte integrations can configure it with VITE_MERCURE_HUB_URL.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel

Laravel 13.x: Collections mit chunkBy() nach Nachbarwerten teilen

Die neue Methode chunkBy() teilt Collections und Lazy Collections immer dann, wenn sich ein gewählter Wert ändert, und gruppiert damit nur aufeinanderfolgende Treffer.

Pull request by @JosephSilber

The new chunkBy() method splits collections and lazy collections whenever a chosen value changes. Unlike groupBy(), it groups only consecutive matches: values with the same key that appear later form a separate chunk. Pass a property name or callback to choose the value to compare.

collect([1, 1, 2, 2, 1])->chunkBy(fn ($value) => $value);
// [[1, 1], [2, 2], [1]]

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel

Laravel 13.x: Assertions für genau einmal gesendete Mails und Notifications

Die Mail- und Notification-Fakes bieten neue Assertions wie Mail::assertSentOnce() und Notification::assertSentToOnce() für Ereignisse, die genau einmal auftreten sollen.

Pull request by @talaridisTh

The mail and notification fakes now offer assertions for events that should happen exactly once: Mail::assertSentOnce(), Mail::assertQueuedOnce(), Notification::assertSentToOnce(), and Notification::assertSentOnDemandOnce(). These are shorter alternatives to the corresponding ...Times(..., 1) assertions.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel

Laravel 13.x: Natives SQL NULL bei Collection- und ArrayObject-Casts

AsCollection::nullable() und AsArrayObject::nullable() speichern bei null ein natives SQL NULL, während bestehende Casts weiterhin den JSON-Wert "null" speichern.

Pull request by @zeinrahmad76

AsCollection::nullable() and AsArrayObject::nullable() now opt in to storing a native SQL NULL when an attribute is set to null, so queries such as whereNull() can match it. Existing casts keep their previous behavior of storing the JSON "null" value unless the nullable variant is selected.

use Illuminate\Database\Eloquent\Casts\AsCollection;
use Illuminate\Database\Eloquent\Model;

class Order extends Model
{
    protected $casts = [
        'items' => AsCollection::nullable(),
    ];
}

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel

Laravel 13.x: In-Place-Indexänderungen in MySQL per inplace()

MySQL-Migrationen können Index- und Foreign-Key-Definitionen mit inplace() verketten, um ALGORITHM=INPLACE explizit anzufordern.

Pull request by @SanderMuller

MySQL schema migrations can now chain inplace() onto index and foreign key definitions to request ALGORITHM=INPLACE. Combined with the existing lock('none') option, this lets a migration explicitly request a less disruptive DDL operation instead of silently accepting a different algorithm; MySQL can reject operations it cannot perform under those constraints.

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

Schema::table('video_sessions', function (Blueprint $table) {
    $table->index('video_id')->inplace()->lock('none');
});

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel

Laravel AI: Worker-Abstürze auf das Exception-Limit eines Jobs anrechnen

Jobs können sich per #[CountCrashesAsExceptions] oder $countCrashesAsExceptions dafür entscheiden, dass unerwartet beendete Worker-Versuche auf maxExceptions angerechnet werden.

Pull request by @williamjulianvicary

Jobs can opt in to counting an unexpectedly terminated worker attempt toward maxExceptions using the #[CountCrashesAsExceptions] attribute or $countCrashesAsExceptions property. This helps prevent jobs from retrying indefinitely after crashes or external worker kills; normal completions and worker-managed timeouts do not count as crashes. The feature uses a cache marker for opted-in jobs.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel

Laravel Horizon: AI-Provider aus Laufzeitkonfiguration erstellen

Ai::build() erstellt einen Provider aus einem Konfigurations-Array zur Laufzeit, ohne die konfigurierten Provider der Anwendung zu verändern, etwa für mandantenspezifische Schlüssel.

Pull request by @pushpak1300

Ai::build() creates a provider from a configuration array without changing the application's configured providers. This supports credentials loaded at runtime, such as tenant-specific keys, and allows built providers in failover lists. For queued agents, build the provider in the agent's provider() method so it can be recreated by the worker rather than building it only at the call site.

use Laravel\Ai\Ai;

$agent->prompt($text, provider: [
    Ai::build(['driver' => 'anthropic', 'key' => $tenant->ai_key]),
]);

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel

Laravel Scout: Logarithmisches Queue-Auto-Scaling in Horizon

Horizon-Supervisors können neben time und size jetzt die Auto-Scaling-Strategie log nutzen, die Queue-Rückstände logarithmisch gewichtet.

Pull request by @Gummibeer

Horizon supervisors can now use the log auto-scaling strategy alongside time and size. It weights queue backlogs logarithmically, reducing the chance that one much larger queue takes nearly all available workers. This is useful when keeping smaller queues moving matters more than maximizing throughput on the largest backlog.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel

Laravel Scout: Native Meilisearch-Embedder nutzen

Die Meilisearch-Engine von Scout kann für semantic()- und hybrid()-Abfragen die nativen Meilisearch-Embedder nutzen, wenn der Embedding-driver auf meilisearch gesetzt wird.

Pull request by @Strift

Scout's Meilisearch engine can now use Meilisearch's own embedders for semantic() and hybrid() queries by setting the model's embedding driver to meilisearch and supplying an embedder. Meilisearch then generates document and query embeddings, while a vector passed through options(['vector' => ...]) can override query embedding. The default laravel-ai driver remains unchanged.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel Framework von Laravel

Laravel Framework Version 13.34.0

Laravel Framework v13.34.0 nimmt die Dauer ins JobProcessed-Event auf, benachrichtigt Jobs vor einem Timeout, ergänzt die Option --queue für queue:flush und behebt mehrere Fehler, etwa bei Number::parseInt(), PhpRedisLock::refresh() und Collection::mode().

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel Framework von Laravel

Laravel Framework Version 12.69.3

Laravel Framework v12.69.3 macht den Exit-Code bei Worker-Timeout erreichbar und unterstützt benannte S3-Credential-Provider sowie Cloud-IAM-Disks.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel Framework von Laravel

Version 13.33.0: Worker-Kill bei Job-Timeout abschaltbar, brick/math 0.20 und 1.0

Laravel Framework v13.33.0 ermöglicht das Abschalten des Worker-Kills bei Job-Timeout, passt die Speicherung des Passwort-Hashs für authentifizierte Sessions an, unterstützt brick/math 0.20 und 1.0 und behebt mehrere Fehler bei Cache- und Eloquent-Collections.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel Framework von Laravel

Version 13.32.0: Enums bei Queue pause/resume, Exception in Violation-Callbacks

Laravel Framework v13.32.0 erlaubt Enums in den Queue-Methoden pause/resume, übergibt die Exception an Eloquent-Violation-Callbacks und behebt Fehler bei hasIndex, containsStrict() und Factory::raw() mit Anzahl null.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel Framework von Laravel

Version 13.31.0: Passwort-Hash-Prüfung, Queue::totalSize und JobInterrupted-Event

Laravel Framework v13.31.0 prüft vor der Authentifizierung, ob der Passwort-Hash zum gespeicherten Cookie passt, ergänzt Queue::totalSize, das JobInterrupted-Event und Chaperone-Unterstützung für BelongsToMany-Pivot-Modelle und behebt Fehler bei lazy()/lazyById() sowie userFromRecaller().

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Laravel Framework von Laravel

Version 12.69.2: Standardwert für memoryExceededExitCode in Cloud

Laravel Framework v12.69.2 setzt einen Standardwert für memoryExceededExitCode in Cloud und korrigiert die Rückgabetypen bei withFreshQueryLog() und askWithCompletion().

Originalquelle(öffnet in neuem Tab)Problem melden