MCProHosting/artisan-validator

View on GitHub
lib/lang/en.json

Summary

Maintainability
Test Coverage
{
    "array": "The <%= key %> must be an array.",
    "boolean": "The <%= key %> must be a boolean.",
    "date": "The <%= key %> must be a date.",
    "float": "The <%= key %> must be a decimal number.",
    "int": "The <%= key %> must be an integer.",
    "numeric": "The <%= key %> must be numeric.",
    "string": "The <%= key %> must be textual.",
    "after": "The <%= key %> must be after <%= args[0] %>.",
    "before": "The <%= key %> must be before <%= args[0] %>.",
    "alpha": "The <%= key %> must be alphabetical.",
    "alphanumeric": "The <%= key %> must be alphanumeric.",
    "ascii": "The <%= key %> may only contain ascii characters.",
    "base64": "The <%= key %> must be base64 encoded.",
    "between": "The <%= key %> must be between <%= args[0] %> and <%= args[1] %> characters long.",
    "byteLength": "The <%= key %> must be <%= args[0] %> and <%= args[1] %> bytes long.",
    "contains": "The <%= key %> must contain <%= args[0] %>.",
    "creditCard": "The <%= key %> is not a valid credit card number.",
    "email": "The <%= key %> must be a valid email.",
    "FQDN": "The <%= key %> is not a valid domain name.",
    "hexadecimal": "The <%= key %> must be a hexadecimal number.",
    "hexColor": "The <%= key %> must be a hexadecimal color.",
    "IP": "The <%= key %> must be a valid IP address.",
    "ISBN": "The <%= key %> must be a valid ISBN.",
    "JSON": "The <%= key %> must be valid JSON.",
    "length": "The <%= key %> must be <%= args[0] %> characters long.",
    "longer": "The <%= key %> must be more than <%= args[0] %> characters long.",
    "lowercase": "The <%= key %> must be lowercase.",
    "matches": "The <%= key %> is in the wrong format.",
    "mongoId": "The <%= key %> must be a valid ID.",
    "shorter": "The <%= key %> must be shorter than <%= args[0] %> characters.",
    "uppercase": "The <%= key %> must be uppercase.",
    "URL": "The <%= key %> must be a valid URL.",
    "UUID": "The <%= key %> is not a valid UUID<%= args[0] || '' %>.",
    "divisibleBy": "The <%= key %> should be a multiple of <%= args[0] %>.",
    "greaterThan": "The <%= key %> should be greater than <%= args[0] %>.",
    "lessThan": "The <%= key %> should be less than <%= args[0] %>.",
    "within": "The <%= key %> should be greater than <%= args[0] %> and less than <%= args[1] %>.",
    "equals": "The <%= key %> must match <%= args[0] %>.",
    "in": "The <%= key %> must be one of: <%= args.join(', ') %>.",
    "not": "The <%= key %> is invalid.",
    "required": "The <%= key %> is required.",
    "requiredWith": "The <%= key %> is required.",
    "requiredWithout": "The <%= key %> is required.",
    "$missing": "The <%= key %> is invalid."
}