Skip to content

fix: fix exception handler to fall back to expectsJson() - #41

Merged
albertcht merged 1 commit into
hypervel:mainfrom
binaryfire:fix/exception-handler-expects-json-fallback
Jan 5, 2026
Merged

albertcht merged 1 commit into
hypervel:mainfrom
binaryfire:fix/exception-handler-expects-json-fallback

Conversation

@binaryfire

Copy link
Copy Markdown
Member

The shouldRenderJsonWhen callback now returns true for API routes, then falls back to $request->expectsJson() for content negotiation on non-API routes, instead of returning false.

The shouldRenderJsonWhen callback now returns true for API routes,
then falls back to $request->expectsJson() for content negotiation
on non-API routes, instead of implicitly returning false.
@albertcht albertcht changed the title Fix exception handler to fall back to expectsJson() fix: fix exception handler to fall back to expectsJson() Jan 5, 2026
@albertcht albertcht added the bug Something isn't working label Jan 5, 2026
@albertcht
albertcht merged commit 8f9a384 into hypervel:main Jan 5, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants