RepoJournal
Laravel

@laravel

PHP's most popular framework — Forge, Vapor, and a massive paying audience

Pick a date

The Wire · Showcase

LARAVEL 13 SHIPS JSON EXCEPTIONS FOR API ROUTES BY DEFAULT

By RepoJournal · Filed · About Laravel

Laravel's new default configuration now renders exceptions as JSON on API routes without requiring explicit Accept headers, fixing a friction point for API developers using tools like Postman and curl.

The framework landed a significant quality-of-life improvement for API development [1]. New Laravel applications will automatically return JSON-formatted exception responses for any route under `api/*`, eliminating the need for clients to send `Accept: application/json` headers. This uses the existing `shouldRenderJsonWhen()` API and doesn't introduce new surface area [2]. Alongside that, the framework fixed type hints in the Number class where `spell()`, `ordinal()`, and `spellOrdinal()` were incorrectly documented as returning `string` when they actually return `string|false` [3], and added support for URI-based SQLite connections using the `file:` prefix [4], matching modern PDO capabilities. Moat 1.0.4 shipped with dependency bumps [5], while maestro pinned GitHub Actions across starter kits for improved supply chain security [6].

Action items

References

  1. [1] [13.x] Render JSON exceptions for API routes by default (#6824) laravel/laravel
  2. [2] [13.x] Render JSON exceptions for API routes by default ↗ laravel/laravel
  3. [3] [13.x] Fix incorrect @return types in Number::spell(), ordinal(), and spellOrdinal() (#60263) laravel/framework
  4. [4] Supports using URI-based connection for SQLite using `file:` prefix (#60261) laravel/framework
  5. [5] v1.0.4 ↗ laravel/moat
  6. [6] Pin starter kit actions & ensure dependabot updates them ↗ laravel/maestro

FAQ

What changed in Laravel on May 26, 2026?
Laravel's new default configuration now renders exceptions as JSON on API routes without requiring explicit Accept headers, fixing a friction point for API developers using tools like Postman and curl.
What should Laravel teams do about it?
Review the JSON exception rendering config in your new 13.x apps - it's now the default • Update type hints in existing Number utility calls if you're relying on strict return typing • Pin GitHub Actions in your starter kit workflows if you haven't already
Which Laravel repositories shipped on May 26, 2026?
laravel/laravel, laravel/framework, laravel/moat, laravel/maestro

For your repos

The showcase is a teaser.
Your wire is the product.

Same engine. Different stack. Below: what changes when the wire is yours.

Showcase wire

  • 14 famous open source orgs
  • One wire per day
  • Public, generic
  • Read on the web, when you remember

Your wire

  • Up to 1,500 of your repos - orgs, deps, vendors
  • Morning and evening briefs
  • Action items routed to your team
  • Slack delivery, email, breaking-news CVE alerts

Want a hands-on demo first? Ask a current user for an invite link.