validation.php 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  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, dashes and underscores.',
  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. 'gt' => [
  43. 'numeric' => 'The :attribute must be greater than :value.',
  44. 'file' => 'The :attribute must be greater than :value kilobytes.',
  45. 'string' => 'The :attribute must be greater than :value characters.',
  46. 'array' => 'The :attribute must have more than :value items.',
  47. ],
  48. 'gte' => [
  49. 'numeric' => 'The :attribute must be greater than or equal :value.',
  50. 'file' => 'The :attribute must be greater than or equal :value kilobytes.',
  51. 'string' => 'The :attribute must be greater than or equal :value characters.',
  52. 'array' => 'The :attribute must have :value items or more.',
  53. ],
  54. 'image' => 'The :attribute must be an image.',
  55. 'in' => 'The selected :attribute is invalid.',
  56. 'in_array' => 'The :attribute field does not exist in :other.',
  57. 'integer' => 'The :attribute must be an integer.',
  58. 'ip' => 'The :attribute must be a valid IP address.',
  59. 'ipv4' => 'The :attribute must be a valid IPv4 address.',
  60. 'ipv6' => 'The :attribute must be a valid IPv6 address.',
  61. 'json' => 'The :attribute must be a valid JSON string.',
  62. 'lt' => [
  63. 'numeric' => 'The :attribute must be less than :value.',
  64. 'file' => 'The :attribute must be less than :value kilobytes.',
  65. 'string' => 'The :attribute must be less than :value characters.',
  66. 'array' => 'The :attribute must have less than :value items.',
  67. ],
  68. 'lte' => [
  69. 'numeric' => 'The :attribute must be less than or equal :value.',
  70. 'file' => 'The :attribute must be less than or equal :value kilobytes.',
  71. 'string' => 'The :attribute must be less than or equal :value characters.',
  72. 'array' => 'The :attribute must not have more than :value items.',
  73. ],
  74. 'max' => [
  75. 'numeric' => 'The :attribute may not be greater than :max.',
  76. 'file' => 'The :attribute may not be greater than :max kilobytes.',
  77. 'string' => 'The :attribute may not be greater than :max characters.',
  78. 'array' => 'The :attribute may not have more than :max items.',
  79. ],
  80. 'mimes' => 'The :attribute must be a file of type: :values.',
  81. 'mimetypes' => 'The :attribute must be a file of type: :values.',
  82. 'min' => [
  83. 'numeric' => 'The :attribute must be at least :min.',
  84. 'file' => 'The :attribute must be at least :min kilobytes.',
  85. 'string' => 'The :attribute must be at least :min characters.',
  86. 'array' => 'The :attribute must have at least :min items.',
  87. ],
  88. 'not_in' => 'The selected :attribute is invalid.',
  89. 'not_regex' => 'The :attribute format is invalid.',
  90. 'numeric' => 'The :attribute must be a number.',
  91. 'present' => 'The :attribute field must be present.',
  92. 'regex' => 'The :attribute format is invalid.',
  93. 'required' => 'The :attribute field is required.',
  94. 'required_if' => 'The :attribute field is required when :other is :value.',
  95. 'required_unless' => 'The :attribute field is required unless :other is in :values.',
  96. 'required_with' => 'The :attribute field is required when :values is present.',
  97. 'required_with_all' => 'The :attribute field is required when :values are present.',
  98. 'required_without' => 'The :attribute field is required when :values is not present.',
  99. 'required_without_all' => 'The :attribute field is required when none of :values are present.',
  100. 'same' => 'The :attribute and :other must match.',
  101. 'size' => [
  102. 'numeric' => 'The :attribute must be :size.',
  103. 'file' => 'The :attribute must be :size kilobytes.',
  104. 'string' => 'The :attribute must be :size characters.',
  105. 'array' => 'The :attribute must contain :size items.',
  106. ],
  107. 'string' => 'The :attribute must be a string.',
  108. 'timezone' => 'The :attribute must be a valid zone.',
  109. 'unique' => 'The :attribute has already been taken.',
  110. 'uploaded' => 'The :attribute failed to upload.',
  111. 'url' => 'The :attribute format is invalid.',
  112. /*
  113. |--------------------------------------------------------------------------
  114. | Custom Validation Language Lines
  115. |--------------------------------------------------------------------------
  116. |
  117. | Here you may specify custom validation messages for attributes using the
  118. | convention "attribute.rule" to name the lines. This makes it quick to
  119. | specify a specific custom language line for a given attribute rule.
  120. |
  121. */
  122. 'custom' => [
  123. 'attribute-name' => [
  124. 'rule-name' => 'custom-message',
  125. ],
  126. ],
  127. /*
  128. |--------------------------------------------------------------------------
  129. | Custom Validation Attributes
  130. |--------------------------------------------------------------------------
  131. |
  132. | The following language lines are used to swap attribute place-holders
  133. | with something more reader friendly such as E-Mail Address instead
  134. | of "email". This simply helps us make messages a little cleaner.
  135. |
  136. */
  137. 'attributes' => [],
  138. ];