The Wire · Showcase
LARAVEL AI OVERHAULS TYPE SAFETY AND GATEWAY CONTRACTS
By RepoJournal · Filed · About Laravel
Laravel AI v0.9.0 ships native Anthropic structured outputs and strips away redundant gateway boilerplate that's been slowing down provider implementations for months.
The AI package dropped v0.9.0 [1] with missing return type generics now baked into embeddings and reranking responses, plus the ability to disable embeddings cache per request. More significantly, the team killed the TextGateway contract entirely [2] [3], collapsing duplicate forwarding logic that every provider gateway was forced to carry. The multi-step text generation API now lives exclusively in TextGenerationLoop, with FakeTextGateway emitting ToolCall stream events to match real provider behavior. Framework keeps pace with v13.19.0 [6] adding first-party image processing [7] with a driver-based immutable API that optimizes uploads from 2.1 MB down to 75.8 KB in one call, plus new QueueFake hooks [8] letting you manipulate time between job dispatches in tests. v12.63.0 [5] handles lost database connections more gracefully and guards JsonSchema deserializers against unbounded $ref expansion attacks. The TextGateway removal needs documented [4], and you'll want to read the upgrade guide carefully if you're running custom provider implementations.
Action items
- → Upgrade laravel/ai to v0.9.0 and review the TextGateway removal in your custom provider gateways laravel/ai [plan]
- → Update to Framework v13.19.0 to unlock first-party image processing and QueueFake test helpers laravel/framework [plan]
- → Patch Framework v12.63.0 for JsonSchema security hardening laravel/framework [monitor]
References
- [1] v0.9.0 ↗ laravel/ai
- [2] Remove TextGateway contract in favor of StepTextGateway ↗ laravel/ai
- [3] Remove TextGateway contract in favor of StepTextGateway (#743) laravel/ai
- [4] Document TextGateway removal in upgrade guide ↗ laravel/ai
- [5] v12.63.0 ↗ laravel/framework
- [6] v13.19.0 ↗ laravel/framework
- [7] [13.x] Adds first-party support for `image` processing ↗ laravel/framework
- [8] [13.x] `beforePushing` and `afterPushing` methods on `QueueFake` class ↗ laravel/framework
FAQ
- What changed in Laravel on July 8, 2026?
- Laravel AI v0.9.0 ships native Anthropic structured outputs and strips away redundant gateway boilerplate that's been slowing down provider implementations for months.
- What should Laravel teams do about it?
- Upgrade laravel/ai to v0.9.0 and review the TextGateway removal in your custom provider gateways • Update to Framework v13.19.0 to unlock first-party image processing and QueueFake test helpers • Patch Framework v12.63.0 for JsonSchema security hardening
- Which Laravel repositories shipped on July 8, 2026?
- laravel/ai, laravel/framework