Skip to content

Commit 2ccd84c

Browse files
fix: method not allowed exception message
1 parent f0274d4 commit 2ccd84c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ApiExceptionHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ private function prepareApiExceptionData(Throwable $exception): array
6565
$responseData['message'] = config('api-responses.http_not_found');
6666
$responseData['statusCode'] = 404;
6767
} elseif ($exception instanceof MethodNotAllowedHttpException) {
68-
$responseData['message'] = config('api-responses.method_not_allowed');
68+
$responseData['message'] = $message;
6969
$responseData['statusCode'] = 405;
7070
} elseif ($exception instanceof ModelNotFoundException) {
7171
$responseData['message'] = config('api-responses.http_not_found');

0 commit comments

Comments
 (0)