Skip to content

Conversation

@itashia
Copy link
Contributor

@itashia itashia commented May 24, 2025

No description provided.

];
}

return response()->json($response, $statusCode);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please use ResponseJson static class to build json response, to ensure all responses are using same structure

use Illuminate\Http\JsonResponse;
use Symfony\Component\HttpFoundation\Response;

class Handler extends ExceptionHandler
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please consider that some exceptions are handled in bootstrap/app.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants