diff --git a/bootstrap/app.php b/bootstrap/app.php index fc6932e..6bae236 100644 --- a/bootstrap/app.php +++ b/bootstrap/app.php @@ -35,7 +35,7 @@ }) ->withExceptions(function (Exceptions $exceptions): void { $exceptions->shouldRenderJsonWhen( - fn (Request $request) => $request->is('api/*'), + fn (Request $request) => $request->is('api/*') || $request->expectsJson(), ); }) ->withSchedule(function (Schedule $schedule): void {