Open MarcinOrlowski opened 2 years ago
Well, it seems, that this problem is a bit bigger.
If I try to access a post
route as get
, it should return 405
code, but instead, it returns 500
Any news?
Unfortunately I haven't had time to take a look at this. Let me try over forthcoming weekend.
I have checked this
And
$ex->getStatusCode()
indeed returns404
, but at the same time, the final output has500
status code. Here, I just opened a non-existent route:I tried to implement your solution:
And after that, I receive this error whenever I try to access a wrong route:
Originally posted by @beeyev in https://github.com/MarcinOrlowski/laravel-api-response-builder/discussions/225#discussioncomment-2238369