We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0274d4 commit 2ccd84cCopy full SHA for 2ccd84c
src/ApiExceptionHandler.php
@@ -65,7 +65,7 @@ private function prepareApiExceptionData(Throwable $exception): array
65
$responseData['message'] = config('api-responses.http_not_found');
66
$responseData['statusCode'] = 404;
67
} elseif ($exception instanceof MethodNotAllowedHttpException) {
68
- $responseData['message'] = config('api-responses.method_not_allowed');
+ $responseData['message'] = $message;
69
$responseData['statusCode'] = 405;
70
} elseif ($exception instanceof ModelNotFoundException) {
71
0 commit comments