I don't understand what do you mean with:
I would have to make n conditional to catch everything
What is the Laravel way to return a JSON with the error code on error?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community