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 97aa4a8 commit faa3a0eCopy full SHA for faa3a0e
modules/openapi-generator/src/main/resources/php-laravel/api_controller.mustache
@@ -87,13 +87,8 @@ class {{controllerName}} extends Controller
87
{{/isPathParam}}
88
89
{{/allParams}}
90
- try {
91
- $apiResult = $this->api->{{operationId}}({{#allParams}}${{paramName}}{{^-last}}, {{/-last}}{{/allParams}});
92
- } catch (\Exception $exception) {
93
- // This shouldn't happen
94
- report($exception);
95
- return response()->json(['error' => $exception->getMessage()], 500);
96
- }
+
+ $apiResult = $this->api->{{operationId}}({{#allParams}}${{paramName}}{{^-last}}, {{/-last}}{{/allParams}});
97
98
{{#responses}}
99
{{#isArray}}
0 commit comments