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 61f95a6 commit 4f2e910Copy full SHA for 4f2e910
src/Traits/SimpleDTOFormRequestTrait.php
@@ -21,7 +21,13 @@ public static function getSimpleDTOFormRequest($value)
21
$instance = $validator->getValidatorInstance();
22
23
if ($instance->fails()) {
24
- return $instance->errors();
+
25
+ // return $instance->errors();
26
27
+ $errors = $instance->errors();
28
29
+ throw \Illuminate\Validation\ValidationException::withMessages( $errors->messages() );
30
31
}
32
33
$validator->passedValidation();
0 commit comments