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 5312016 commit a74f7bdCopy full SHA for a74f7bd
README.md
@@ -29,7 +29,7 @@ $validation = new ValidationResult();
29
30
// Validate username
31
if (empty($data['username'])) {
32
- $validation->addError('email', 'Input required');
+ $validation->addError('username', 'Input required');
33
}
34
35
// Validate password
@@ -40,7 +40,7 @@ if (empty($data['password'])) {
40
// Check validation result
41
if ($validation->isFailed()) {
42
// Global error message
43
- $validation->setMessage('Please check you input');
+ $validation->setMessage('Please check your input');
44
45
// Trigger error response (see validation middleware)
46
throw new ValidationException($validation);
0 commit comments