V::errors()
Validates the given input with all passed rules and returns an array with all error messages. The array will be empty if the input is valid
V::errors(mixed $input, array $rules, array $messages = []): array
Parameters
| Name | Type | Default |
|---|---|---|
| $inputrequired | mixed |
no default value |
| $rulesrequired | array |
no default value |
| $messages | array |
[]
|
Return type
array