|
| 1 | +<?php |
| 2 | + |
| 3 | +return array( |
| 4 | + 'required' => "is required", |
| 5 | + 'equals' => "must be the same as '%s'", |
| 6 | + 'different' => "must be different than '%s'", |
| 7 | + 'accepted' => "must be accepted", |
| 8 | + 'numeric' => "must be numeric", |
| 9 | + 'integer' => "must be an integer", |
| 10 | + 'length' => "must be %d characters long", |
| 11 | + 'min' => "must be at least %s", |
| 12 | + 'max' => "must be no more than %s", |
| 13 | + 'listContains' => "contains invalid value", |
| 14 | + 'in' => "contains invalid value", |
| 15 | + 'notIn' => "contains invalid value", |
| 16 | + 'ip' => "is not a valid IP address", |
| 17 | + 'ipv4' => "is not a valid IPv4 address", |
| 18 | + 'ipv6' => "is not a valid IPv6 address", |
| 19 | + 'email' => "is not a valid email address", |
| 20 | + 'url' => "is not a valid URL", |
| 21 | + 'urlActive' => "must be an active domain", |
| 22 | + 'alpha' => "must contain only letters a-z", |
| 23 | + 'alphaNum' => "must contain only letters a-z and/or numbers 0-9", |
| 24 | + 'slug' => "must contain only letters a-z, numbers 0-9, dashes and underscores", |
| 25 | + 'regex' => "contains invalid characters", |
| 26 | + 'date' => "is not a valid date", |
| 27 | + 'dateFormat' => "must be date with format '%s'", |
| 28 | + 'dateBefore' => "must be date before '%s'", |
| 29 | + 'dateAfter' => "must be date after '%s'", |
| 30 | + 'contains' => "must contain %s", |
| 31 | + 'boolean' => "must be a boolean", |
| 32 | + 'lengthBetween' => "must be between %d and %d characters", |
| 33 | + 'creditCard' => "must be a valid credit card number", |
| 34 | + 'lengthMin' => "must be at least %d characters long", |
| 35 | + 'lengthMax' => "must not exceed %d characters", |
| 36 | + 'instanceOf' => "must be an instance of '%s'", |
| 37 | + 'containsUnique' => "must contain unique elements only", |
| 38 | + 'requiredWith' => "is required", |
| 39 | + 'requiredWithout'=> "is required", |
| 40 | + 'subset' => "contains an item that is not in the list", |
| 41 | + 'arrayHasKeys' => "does not contain all required keys", |
| 42 | +); |
0 commit comments