validation.php 7.9 KB

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