validation.php 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Validation Language Lines
  6. |--------------------------------------------------------------------------
  7. |
  8. | The following language lines contain the default error messages used by
  9. | the validator class. Some of these rules have multiple versions such
  10. | as the size rules. Feel free to tweak each of these messages here.
  11. |
  12. */
  13. 'accepted' => 'The :attribute must be accepted.',
  14. 'active_url' => 'The :attribute is not a valid URL.',
  15. 'after' => 'The :attribute must be a date after :date.',
  16. 'after_or_equal' => 'The :attribute must be a date after or equal to :date.',
  17. 'alpha' => 'The :attribute may only contain letters.',
  18. 'alpha_dash' => 'The :attribute may only contain letters, numbers, and dashes.',
  19. 'alpha_num' => 'The :attribute may only contain letters and numbers.',
  20. 'array' => 'The :attribute must be an array.',
  21. 'before' => 'The :attribute must be a date before :date.',
  22. 'before_or_equal' => 'The :attribute must be a date before or equal to :date.',
  23. 'between' => [
  24. 'numeric' => 'The :attribute must be between :min and :max.',
  25. 'file' => 'The :attribute must be between :min and :max kilobytes.',
  26. 'string' => 'The :attribute must be between :min and :max characters.',
  27. 'array' => 'The :attribute must have between :min and :max items.',
  28. ],
  29. 'boolean' => 'The :attribute field must be true or false.',
  30. 'confirmed' => 'The :attribute confirmation does not match.',
  31. 'date' => 'The :attribute is not a valid date.',
  32. 'date_format' => 'The :attribute does not match the format :format.',
  33. 'different' => 'The :attribute and :other must be different.',
  34. 'digits' => 'The :attribute must be :digits digits.',
  35. 'digits_between' => 'The :attribute must be between :min and :max digits.',
  36. 'dimensions' => 'The :attribute has invalid image dimensions.',
  37. 'distinct' => 'The :attribute field has a duplicate value.',
  38. 'email' => 'The :attribute must be a valid email address.',
  39. 'exists' => 'The selected :attribute is invalid.',
  40. 'file' => 'The :attribute must be a file.',
  41. 'filled' => 'The :attribute field must have a value.',
  42. 'image' => 'The :attribute must be an image.',
  43. 'in' => 'The selected :attribute is invalid.',
  44. 'in_array' => 'The :attribute field does not exist in :other.',
  45. 'integer' => 'The :attribute must be an integer.',
  46. 'ip' => 'The :attribute must be a valid IP address.',
  47. 'ipv4' => 'The :attribute must be a valid IPv4 address.',
  48. 'ipv6' => 'The :attribute must be a valid IPv6 address.',
  49. 'json' => 'The :attribute must be a valid JSON string.',
  50. 'max' => [
  51. 'numeric' => 'The :attribute may not be greater than :max.',
  52. 'file' => 'The :attribute may not be greater than :max kilobytes.',
  53. 'string' => 'The :attribute may not be greater than :max characters.',
  54. 'array' => 'The :attribute may not have more than :max items.',
  55. ],
  56. 'mimes' => 'The :attribute must be a file of type: :values.',
  57. 'mimetypes' => 'The :attribute must be a file of type: :values.',
  58. 'min' => [
  59. 'numeric' => 'The :attribute must be at least :min.',
  60. 'file' => 'The :attribute must be at least :min kilobytes.',
  61. 'string' => 'The :attribute must be at least :min characters.',
  62. 'array' => 'The :attribute must have at least :min items.',
  63. ],
  64. 'not_in' => 'The selected :attribute is invalid.',
  65. 'numeric' => 'The :attribute must be a number.',
  66. 'present' => 'The :attribute field must be present.',
  67. 'regex' => 'The :attribute format is invalid.',
  68. 'required' => 'The :attribute field is required.',
  69. 'required_if' => 'The :attribute field is required when :other is :value.',
  70. 'required_unless' => 'The :attribute field is required unless :other is in :values.',
  71. 'required_with' => 'The :attribute field is required when :values is present.',
  72. 'required_with_all' => 'The :attribute field is required when :values is present.',
  73. 'required_without' => 'The :attribute field is required when :values is not present.',
  74. 'required_without_all' => 'The :attribute field is required when none of :values are present.',
  75. 'same' => 'The :attribute and :other must match.',
  76. 'size' => [
  77. 'numeric' => 'The :attribute must be :size.',
  78. 'file' => 'The :attribute must be :size kilobytes.',
  79. 'string' => 'The :attribute must be :size characters.',
  80. 'array' => 'The :attribute must contain :size items.',
  81. ],
  82. 'string' => 'The :attribute must be a string.',
  83. 'timezone' => 'The :attribute must be a valid zone.',
  84. 'unique' => 'The :attribute has already been taken.',
  85. 'uploaded' => 'The :attribute failed to upload.',
  86. 'url' => 'The :attribute format is invalid.',
  87. /*
  88. |--------------------------------------------------------------------------
  89. | Custom Validation Language Lines
  90. |--------------------------------------------------------------------------
  91. |
  92. | Here you may specify custom validation messages for attributes using the
  93. | convention "attribute.rule" to name the lines. This makes it quick to
  94. | specify a specific custom language line for a given attribute rule.
  95. |
  96. */
  97. 'custom' => [
  98. 'attribute-name' => [
  99. 'rule-name' => 'custom-message',
  100. ],
  101. ],
  102. /*
  103. |--------------------------------------------------------------------------
  104. | Custom Validation Attributes
  105. |--------------------------------------------------------------------------
  106. |
  107. | The following language lines are used to swap attribute place-holders
  108. | with something more reader friendly such as E-Mail Address instead
  109. | of "email". This simply helps us make messages a little cleaner.
  110. |
  111. */
  112. 'attributes' => [],
  113. ];