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

Laravel AI: Konversations-Metadaten nach gestreamten Antworten

Nach Abschluss eines Streams mit stream() sind conversationId und conversationUser nun auf der äußeren StreamableAgentResponse verfügbar statt null.

Pull request by @dhrupo

When using a conversational agent with stream(), the conversationId on the outer StreamableAgentResponse was always null - the metadata was being written to the inner response only. After this fix, conversationId and conversationUser are available on the outer response object once the stream completes.

Originalquelle(öffnet in neuem Tab)Problem melden

Laravel

Laravel AI: Konversationsliste über HasConversations-Trait abrufen

Ein neuer HasConversations-Trait für das User-Model stellt eine Eloquent-Beziehung zu Konversationen bereit, wobei updated_at mit neuen Nachrichten fortgeschrieben wird.

Pull request by @barryvdh

Building a conversation history sidebar previously meant writing raw SQL against the agent_conversations table. A new HasConversations trait for your User model exposes a proper Eloquent relationship, with updated_at advancing as messages arrive so ordering by recency just works.

class User extends Authenticatable
{
    use HasConversations;
}

$conversations = $request->user()
    ->conversations()
    ->latest('updated_at')
    ->paginate(20);

Originalquelle(öffnet in neuem Tab)Problem melden

Laravel

Laravel AI: stream_failed-Event bei fehlgeschlagenem BroadcastAgent-Job

Wenn ein BroadcastAgent-Job fehlschlägt, wird nun über den failed()-Hook ein stream_failed-Event gesendet, damit Clients den Fehler anzeigen und einen neuen Versuch ermöglichen können.

Pull request by @sumaiazaman

When a BroadcastAgent job threw an unhandled exception, the frontend had no signal that the stream had failed - leaving the user staring at a spinner indefinitely. A stream_failed event is now broadcast via the job's failed() hook so clients can surface the error and let users retry.

Originalquelle(öffnet in neuem Tab)Problem melden

Laravel

toAudio-Macro für Stringable hinzugefügt

Über das neue toAudio-Macro lässt sich Text-to-Speech direkt von einer Stringable-Instanz aus ausführen, optional mit Provider, Voice, Instructions, Model und Timeout.

Pull request by @nhedger

Text-to-speech is now a fluent one-liner from any Stringable instance:

$response = Str::of('Hello world')->toAudio(timeout: 45);

// With more control
$response = Str::of('Hello world')->toAudio(
    provider: Lab::ElevenLabs,
    voice: 'alloy',
    instructions: 'Speak slowly',
    model: 'custom-model',
    timeout: 45,
);

Originalquelle(öffnet in neuem Tab)Problem melden

Laravel

Boost: Tinker-MCP-Tool als Opt-in per Config

Das Tinker-MCP-Tool ist als optionales Feature zurück und wird bei Aktivierung über tinker_tool_enabled in config/boost.php von Agents dem Shell-Weg php artisan tinker --execute vorgezogen.

Pull request by @pushpak1300

The Tinker MCP tool is back as an opt-in feature. When enabled, agents prefer the MCP tool over the php artisan tinker --execute '...' shell path - skipping the quoting failures that caused agents to retry a simple snippet two or three times.

// config/boost.php
'tinker_tool_enabled' => true,

Originalquelle(öffnet in neuem Tab)Problem melden

Laravel

Boost: Laravel-Cloud-Integration im Install-Befehl

Der Boost-Install-Befehl bietet jetzt eine Laravel-Cloud-Option, die bei Auswahl automatisch den Skill deploying-laravel-cloud einrichtet.

Pull request by @pushpak1300

The Boost install command now includes a Laravel Cloud option. Opt in during installation and the deploying-laravel-cloud skill is configured automatically alongside your other integrations.

Originalquelle(öffnet in neuem Tab)Problem melden

Laravel

Boost: Model Discovery entfernt, tokenbasiertes Class Parsing

Die Model Discovery über class_exists() wurde wegen unzuverlässigen Verhaltens und Abstürzen komplett entfernt, da KI-Agents Models ohnehin direkt per Codebase-Suche finden.

Pull request by @pushpak1300

Model discovery via class_exists() was broken - only already-loaded classes were visible, and enabling autoloading caused crashes. Rather than chasing endless edge cases, model discovery has been removed entirely. Modern AI agents find models by searching the codebase directly, which works better in practice anyway.

Originalquelle(öffnet in neuem Tab)Problem melden

Laravel

Flux-UI-Komponentenlisten mit fluxui.dev synchronisiert

Die Flux-UI-Skill-Dateien spiegeln nun die Free/Pro-Komponentenlisten von fluxui.dev korrekt wider, sodass Komponenten wie table, card, pagination, progress und toast nicht mehr fälschlich als Pro-only gelten.

Pull request by @pushpak1300

The Flux UI skill files now accurately reflect the component lists from fluxui.dev. Previously, components like table, card, pagination, progress, and toast were listed as Pro-only, causing agents to write custom Blade tables when free Flux components were available all along.

Originalquelle(öffnet in neuem Tab)Problem melden

Laravel

laravel new gibt in AI-Agents strukturierte JSON-Ausgabe aus

Läuft laravel new innerhalb eines AI-Agents, werden interaktive Prompts unterdrückt und eine JSON-Zeile mit Projektname, Verzeichnis sowie bei Fehlern Logpfad und Ausgabeauszug ausgegeben.

Pull request by @joetannenbaum

When laravel new runs inside an AI agent, it now suppresses interactive prompts and outputs a single JSON line describing the result - with the project name, directory, and on failure, a log path and output tail for debugging.

{ "success": true, "name": "my-app", "directory": "/path/to/my-app" }

This makes the installer reliable in automated pipelines without any special wiring.

Originalquelle(öffnet in neuem Tab)Problem melden

Laravel

Starter Kits laden Schriften über das Vite-Font-Plugin

Alle Starter-Kit-Varianten laden Schriften nun über das Vite-Font-Plugin statt über direkte CDN-<link>-Tags, wobei Preloads, @font-face-Regeln und Server Push von @fonts übernommen werden.

Pull request by @WendellAdriel

All starter kit variants have been updated to load fonts through the Vite font plugin. The direct CDN <link> tags are gone - preloads, @font-face rules, and server push are all handled by @fonts now.

Originalquelle(öffnet in neuem Tab)Problem melden

Laravel

passwordrules-Attribut für Neues-Passwort-Felder in Starter Kits

Alle Neues-Passwort-Eingaben der Starter Kits (Registrierung, Passwort zurücksetzen, Passwort ändern) enthalten nun ein aus Password::defaults() abgeleitetes passwordrules-Attribut, damit Passwortmanager gleich konforme Passwörter erzeugen.

Pull request by @joetannenbaum

Every new-password input across the starter kits - register, reset password, and update password pages - now includes a passwordrules attribute derived from Password::defaults()->toPasswordRulesString(). Password managers can generate a compliant password on the first try rather than failing against validation after the fact.

Originalquelle(öffnet in neuem Tab)Problem melden

Laravel

Laravel MCP: ResourceLink-Content-Type (MCP Spec 2025-06-18)

Laravel MCP unterstützt nun den resource_link-Content-Type, der statt eingebetteter Inhalte einen URI-Verweis zurückgibt und sich auch aus einer deklarierten Resource-Klasse mit optionalen Überschreibungen erzeugen lässt.

Pull request by @rupeshstha

Laravel MCP now supports the resource_link content type from the MCP spec. Unlike embedded resources that inline content, a resource link returns a URI pointer that the client fetches or subscribes to independently - better suited for large payloads, generated artifacts, and live subscriptions.

Response::resourceLink(
    uri: 'file:///data/report.json',
    name: 'monthly-report',
    mimeType: 'application/json',
    title: 'Monthly Sales Report',
    size: 2048,
);

Resource links can also be built from a declared Resource class, inheriting its URI, name, description, and MIME type - with optional overrides:

Response::resourceLink(WeatherForecastResource::class, title: 'Custom Title');

Originalquelle(öffnet in neuem Tab)Problem melden

Laravel

MCP-Icons für Server, Tools, Resources und Prompts

MCP-Clients können nun Icons für Server, Tools, Resources und Prompts anzeigen, die per #[Icon]-Attribut oder icons()-Methode deklariert werden, und $context->serverName sowie $context->serverVersion wurden aus ServerContext entfernt (stattdessen $context->implementation->name bzw. ->version).

Pull request by @pushpak1300

MCP clients can now display icons for your servers, tools, resources, and prompts. Declare them via the #[Icon] attribute or a icons() method - both can be used together and their results are combined automatically.

#[Icon('mcp/server.png', mimeType: 'image/png', sizes: ['48x48'])]
#[Icon('mcp/server-dark.svg', theme: IconTheme::Dark)]
class WeatherServer extends Server {}
class WeatherTool extends Tool
{
    public function icons(): array
    {
        return [
            Icon::from('mcp/tool.png', mimeType: 'image/png'),
        ];
    }
}

Relative paths are resolved through Laravel's asset() helper; full URLs are used as-is.

Note: $context->serverName and $context->serverVersion have been removed from ServerContext. Use $context->implementation->name and $context->implementation->version instead.

Laravel Moat reviews the security posture of your GitHub organization and repositories, then surfaces recommendations to consider. It inspects the security controls GitHub already offers — 2FA enforcement, branch protection, signed commits, secret scanning, Dependabot alerts, workflow permissions, pinned actions, repository webhooks, and more — and reports which ones are not enabled or not configured in line with common recommendations.

Originalquelle(öffnet in neuem Tab)Problem melden

Laravel

PAO unterstützt jetzt Rector

PAO enthält einen Rector-Driver, der die Rector-Analyse in einem strukturierten, für Agenten geeigneten Format ausgibt.

Pull request by @cosmastech

PAO now includes a Rector driver, surfacing Rector's analysis in a structured, agent-friendly format. Rector's default console output can be noisy - this makes the results far easier for agents to act on.

Originalquelle(öffnet in neuem Tab)Problem melden

Laravel

PAO: Agent-Hinweise in der PHPStan-JSON-Ausgabe

Die JSON-Ausgabe von PAO enthält für PHPStan nun ein Feld instructions mit derselben Anleitung zur Fehlerbehandlung wie die Konsolenausgabe im Agent-Modus.

Pull request by @pushpak1300

PHPStan's agent-mode console output already includes instructions on how to handle errors correctly. PAO's JSON output now carries the same guidance in an instructions field, so agents using the JSON path get the same steer regardless of how they consume results.

{
    "tool": "phpstan",
    "result": "failed",
    "errors": 3,
    "error_details": {},
    "instructions": "Each error has an associated identifier... Do not add `@phpstan-ignore` comments..."
}

Originalquelle(öffnet in neuem Tab)Problem melden

Laravel

PAO: Neue Umgebungsvariable PAO_FORCE

Mit der neuen Umgebungsvariable PAO_FORCE=1 lässt sich PAO unabhängig von der Agent-Erkennung erzwingen, was etwa Tests in Docker-Containern vereinfacht.

Pull request by @antonkomarev

Running tests inside Docker means agent environment variables often don't propagate into the container. A new PAO_FORCE=1 env var force-enables PAO regardless of agent detection, so you can drop it into a docker compose run command without enumerating every possible agent marker in your compose config.

docker compose run --rm -e PAO_FORCE=1 app vendor/bin/pest

Originalquelle(öffnet in neuem Tab)Problem melden

Laravel

runWith() deaktiviert jetzt alle Agents

Der Test-Helfer runWith() deaktiviert während der Testausführung nun alle Agents statt nur Claude Code, sodass andere Agents die Testläufe nicht mehr stören.

Pull request by @cosmastech

The runWith() testing helper now correctly disables all agents during test execution, not just Claude Code. Previously, other agents could still interfere with test runs.

Originalquelle(öffnet in neuem Tab)Problem melden

Laravel

Passkeys: credentials: include über Passkeys.configure()

Die neue Methode Passkeys.configure() erlaubt es, das Fetch-Verhalten zu überschreiben, sodass Sanctum-SPA-Setups mit Frontend und API auf unterschiedlichen Domains funktionieren.

Pull request by @RobertBoes

The passkeys package previously hardcoded credentials: "same-origin", which breaks Sanctum SPA setups where the frontend and API live on different domains. A new Passkeys.configure() method lets you override the fetch behavior for cross-domain setups.

import { Passkeys } from "@laravel/passkeys";

Passkeys.configure({
    fetch: (input, init) => fetch(input, { ...init, credentials: "include" }),
});

Originalquelle(öffnet in neuem Tab)Problem melden

Laravel

Ranger erfasst API Resources und Arrayable-Antworten

Ranger berücksichtigt beim Sammeln von Route-Antworttypen nun Eloquent API Resources, JSON:API Resources und Arrayable-Klassen, und Inertia-Props werden über den ArrayableResolver aufgelöst, um genauere TypeScript-Typen zu erzeugen.

Pull request by @joetannenbaum

Ranger now picks up Eloquent API resources, JSON:API resources, and any arrayable class when collecting route response types. Inertia prop collection also runs class types through the ArrayableResolver, so toArray-style props are unwrapped into their underlying shape for accurate TypeScript generation.

Originalquelle(öffnet in neuem Tab)Problem melden

Laravel

Ranger beachtet $hidden, $visible und $appends

Die von Ranger erzeugten Typen berücksichtigen jetzt die Eloquent-Eigenschaften $hidden, $visible und $appends und entsprechen damit der tatsächlich serialisierten Antwort.

Pull request by @joetannenbaum

Eloquent's $hidden, $visible, and $appends properties now influence the types Ranger generates. Previously, the generated TypeScript could include attributes that would never appear in a serialized response, or miss custom appended accessors entirely. The resolved shape now matches what Eloquent actually serializes.

Originalquelle(öffnet in neuem Tab)Problem melden