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 adfc957 commit e09d614Copy full SHA for e09d614
src/LaravelRequestDocs.php
@@ -133,7 +133,7 @@ public function appendRequestRules(array $controllersInfo)
133
if ($requestClass && method_exists($requestClass, 'rules')) {
134
try {
135
$controllersInfo[$index]['rules'] = $this->flattenRules($requestClass->rules());
136
- } catch (Exception $e) {
+ } catch (Throwable $e) {
137
// disabled. This only works when the rules are defined as 'required|integer' and that too in single line
138
// doesn't work well when the same rule is defined as array ['required', 'integer'] or in multiple lines such as
139
// If your rules are not populated using this library, then fix your rule to only throw validation errors and not throw exceptions
0 commit comments