validation.php 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  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 must only contain letters.',
  18. 'alpha_dash' => 'The :attribute must only contain letters, numbers, dashes and underscores.',
  19. 'alpha_num' => 'The :attribute must 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. 'current_password' => 'The password is incorrect.',
  32. 'date' => 'The :attribute is not a valid date.',
  33. 'date_equals' => 'The :attribute must be a date equal to :date.',
  34. 'date_format' => 'The :attribute does not match the format :format.',
  35. 'different' => 'The :attribute and :other must be different.',
  36. 'digits' => 'The :attribute must be :digits digits.',
  37. 'digits_between' => 'The :attribute must be between :min and :max digits.',
  38. 'dimensions' => 'The :attribute has invalid image dimensions.',
  39. 'distinct' => 'The :attribute field has a duplicate value.',
  40. 'email' => 'The :attribute must be a valid email address.',
  41. 'ends_with' => 'The :attribute must end with one of the following: :values.',
  42. 'exists' => 'The selected :attribute is invalid.',
  43. 'file' => 'The :attribute must be a file.',
  44. 'filled' => 'The :attribute field must have a value.',
  45. 'gt' => [
  46. 'numeric' => 'The :attribute must be greater than :value.',
  47. 'file' => 'The :attribute must be greater than :value kilobytes.',
  48. 'string' => 'The :attribute must be greater than :value characters.',
  49. 'array' => 'The :attribute must have more than :value items.',
  50. ],
  51. 'gte' => [
  52. 'numeric' => 'The :attribute must be greater than or equal :value.',
  53. 'file' => 'The :attribute must be greater than or equal :value kilobytes.',
  54. 'string' => 'The :attribute must be greater than or equal :value characters.',
  55. 'array' => 'The :attribute must have :value items or more.',
  56. ],
  57. 'image' => 'The :attribute must be an image.',
  58. 'in' => 'The selected :attribute is invalid.',
  59. 'in_array' => 'The :attribute field does not exist in :other.',
  60. 'integer' => 'The :attribute must be an integer.',
  61. 'ip' => 'The :attribute must be a valid IP address.',
  62. 'ipv4' => 'The :attribute must be a valid IPv4 address.',
  63. 'ipv6' => 'The :attribute must be a valid IPv6 address.',
  64. 'json' => 'The :attribute must be a valid JSON string.',
  65. 'lt' => [
  66. 'numeric' => 'The :attribute must be less than :value.',
  67. 'file' => 'The :attribute must be less than :value kilobytes.',
  68. 'string' => 'The :attribute must be less than :value characters.',
  69. 'array' => 'The :attribute must have less than :value items.',
  70. ],
  71. 'lte' => [
  72. 'numeric' => 'The :attribute must be less than or equal :value.',
  73. 'file' => 'The :attribute must be less than or equal :value kilobytes.',
  74. 'string' => 'The :attribute must be less than or equal :value characters.',
  75. 'array' => 'The :attribute must not have more than :value items.',
  76. ],
  77. 'max' => [
  78. 'numeric' => 'The :attribute must not be greater than :max.',
  79. 'file' => 'The :attribute must not be greater than :max kilobytes.',
  80. 'string' => 'The :attribute must not be greater than :max characters.',
  81. 'array' => 'The :attribute must not have more than :max items.',
  82. ],
  83. 'mimes' => 'The :attribute must be a file of type: :values.',
  84. 'mimetypes' => 'The :attribute must be a file of type: :values.',
  85. 'min' => [
  86. 'numeric' => 'The :attribute must be at least :min.',
  87. 'file' => 'The :attribute must be at least :min kilobytes.',
  88. 'string' => 'The :attribute must be at least :min characters.',
  89. 'array' => 'The :attribute must have at least :min items.',
  90. ],
  91. 'multiple_of' => 'The :attribute must be a multiple of :value.',
  92. 'not_in' => 'The selected :attribute is invalid.',
  93. 'not_regex' => 'The :attribute format is invalid.',
  94. 'numeric' => 'The :attribute must be a number.',
  95. 'password' => 'The password is incorrect.',
  96. 'present' => 'The :attribute field must be present.',
  97. 'regex' => 'The :attribute format is invalid.',
  98. 'required' => 'The :attribute field is required.',
  99. 'required_if' => 'The :attribute field is required when :other is :value.',
  100. 'required_unless' => 'The :attribute field is required unless :other is in :values.',
  101. 'required_with' => 'The :attribute field is required when :values is present.',
  102. 'required_with_all' => 'The :attribute field is required when :values are present.',
  103. 'required_without' => 'The :attribute field is required when :values is not present.',
  104. 'required_without_all' => 'The :attribute field is required when none of :values are present.',
  105. 'prohibited' => 'The :attribute field is prohibited.',
  106. 'prohibited_if' => 'The :attribute field is prohibited when :other is :value.',
  107. 'prohibited_unless' => 'The :attribute field is prohibited unless :other is in :values.',
  108. 'same' => 'The :attribute and :other must match.',
  109. 'size' => [
  110. 'numeric' => 'The :attribute must be :size.',
  111. 'file' => 'The :attribute must be :size kilobytes.',
  112. 'string' => 'The :attribute must be :size characters.',
  113. 'array' => 'The :attribute must contain :size items.',
  114. ],
  115. 'starts_with' => 'The :attribute must start with one of the following: :values.',
  116. 'string' => 'The :attribute must be a string.',
  117. 'timezone' => 'The :attribute must be a valid timezone.',
  118. 'unique' => 'The :attribute has already been taken.',
  119. 'uploaded' => 'The :attribute failed to upload.',
  120. 'url' => 'The :attribute must be a valid URL.',
  121. 'uuid' => 'The :attribute must be a valid UUID.',
  122. /*
  123. |--------------------------------------------------------------------------
  124. | Custom Validation Language Lines
  125. |--------------------------------------------------------------------------
  126. |
  127. | Here you may specify custom validation messages for attributes using the
  128. | convention "attribute.rule" to name the lines. This makes it quick to
  129. | specify a specific custom language line for a given attribute rule.
  130. |
  131. */
  132. 'custom' => [
  133. 'attribute-name' => [
  134. 'rule-name' => 'custom-message',
  135. ],
  136. ],
  137. /*
  138. |--------------------------------------------------------------------------
  139. | Custom Validation Attributes
  140. |--------------------------------------------------------------------------
  141. |
  142. | The following language lines are used to swap our attribute placeholder
  143. | with something more reader friendly such as "E-Mail Address" instead
  144. | of "email". This simply helps us make our message more expressive.
  145. |
  146. */
  147. 'attributes' => [],
  148. ];