RepoJournal
Laravel

@laravel

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

Keep up with Laravel in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.

One email a day. Unsubscribe in one click.

Pick a date

Topics: PHP Full archive →

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].

One email a day. Unsubscribe in one click.

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

Quick answers

What shipped 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. In total, 10 commits, 7 pull requests, and 1 releases landed.
Who contributed to Laravel on May 26, 2026?
2 developers shipped this update, including LucasCavalheri and jackbayliss.
What were the notable Laravel updates?
[13.x] Render JSON exceptions for API routes by default (#6824), [13.x] Render JSON exceptions for API routes by default, and [13.x] Fix incorrect @return types in Number::spell(), ordinal(), and spellOrdinal() (#60263).

More from @laravel

Daily updates, in your inbox

Follow Laravel

Keep up with Laravel in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.

or

One email a day. Unsubscribe in one click. Read a past issue →

Elsewhere on the wire

Want every project, not just this one?