diff --git a/bootstrap/exceptions.php b/bootstrap/exceptions.php index 2a96e0d..800bfec 100644 --- a/bootstrap/exceptions.php +++ b/bootstrap/exceptions.php @@ -30,6 +30,6 @@ return function (Exceptions $exceptions): void { }); $exceptions->shouldRenderJsonWhen( - fn (Request $request) => $request->is('api/*'), + fn (Request $request) => $request->is('api/*', 'api'), ); };