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 1081a3e commit 49ca08dCopy full SHA for 49ca08d
README.md
@@ -42,11 +42,11 @@ if (empty($data['username'])) {
42
You can now test the `ValidationResult` and throw an exception if it contains errors.
43
44
```php
45
+<?php
46
+
47
if ($validationResult->isFailed()) {
- // Global error message
48
$validationResult->setMessage('Please check your input');
-
49
- // Trigger error response (see validation middleware)
50
throw new ValidationException($validationResult);
51
}
52
```
0 commit comments