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 95cb1b6 commit 6b5ac8bCopy full SHA for 6b5ac8b
src/Handlers/ValidationHandler.php
@@ -13,7 +13,7 @@ class ValidationHandler extends AbstractHandler
13
*/
14
public function handle()
15
{
16
- $errors = (new ErrorCollection)->setStatusCode(400);
+ $errors = (new ErrorCollection)->setStatusCode(422);
17
18
$failedFieldsRules = $this->getFailedFieldsRules();
19
@@ -49,7 +49,7 @@ public function handle()
49
public function getValidationTitle(array $failedFieldsRules, string $key, string $field)
50
51
$title = __('exception::exceptions.validation.title', [
52
- 'fails' => array_keys($failedFieldsRules[$field])[$key],
+ 'fails' => strtolower(array_keys($failedFieldsRules[$field])[$key]),
53
'field' => $field,
54
]);
55
0 commit comments