validation.php 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  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. 'ascii' => 'The :attribute must only contain single-byte alphanumeric characters and symbols.',
  23. 'before' => 'The :attribute must be a date before :date.',
  24. 'before_or_equal' => 'The :attribute must be a date before or equal to :date.',
  25. 'between' => [
  26. 'array' => 'The :attribute must have between :min and :max items.',
  27. 'file' => 'The :attribute must be between :min and :max kilobytes.',
  28. 'numeric' => 'The :attribute must be between :min and :max.',
  29. 'string' => 'The :attribute must be between :min and :max characters.',
  30. ],
  31. 'boolean' => 'The :attribute field must be true or false.',
  32. 'confirmed' => 'The :attribute confirmation does not match.',
  33. 'current_password' => 'The password is incorrect.',
  34. 'date' => 'The :attribute is not a valid date.',
  35. 'date_equals' => 'The :attribute must be a date equal to :date.',
  36. 'date_format' => 'The :attribute does not match the format :format.',
  37. 'decimal' => 'The :attribute must have :decimal decimal places.',
  38. 'declined' => 'The :attribute must be declined.',
  39. 'declined_if' => 'The :attribute must be declined when :other is :value.',
  40. 'different' => 'The :attribute and :other must be different.',
  41. 'digits' => 'The :attribute must be :digits digits.',
  42. 'digits_between' => 'The :attribute must be between :min and :max digits.',
  43. 'dimensions' => 'The :attribute has invalid image dimensions.',
  44. 'distinct' => 'The :attribute field has a duplicate value.',
  45. 'doesnt_end_with' => 'The :attribute may not end with one of the following: :values.',
  46. 'doesnt_start_with' => 'The :attribute may not start with one of the following: :values.',
  47. 'email' => 'The :attribute must be a valid email address.',
  48. 'ends_with' => 'The :attribute must end with one of the following: :values.',
  49. 'enum' => 'The selected :attribute is invalid.',
  50. 'exists' => 'The selected :attribute is invalid.',
  51. 'file' => 'The :attribute must be a file.',
  52. 'filled' => 'The :attribute field must have a value.',
  53. 'gt' => [
  54. 'array' => 'The :attribute must have more than :value items.',
  55. 'file' => 'The :attribute must be greater than :value kilobytes.',
  56. 'numeric' => 'The :attribute must be greater than :value.',
  57. 'string' => 'The :attribute must be greater than :value characters.',
  58. ],
  59. 'gte' => [
  60. 'array' => 'The :attribute must have :value items or more.',
  61. 'file' => 'The :attribute must be greater than or equal to :value kilobytes.',
  62. 'numeric' => 'The :attribute must be greater than or equal to :value.',
  63. 'string' => 'The :attribute must be greater than or equal to :value characters.',
  64. ],
  65. 'image' => 'The :attribute must be an image.',
  66. 'in' => 'The selected :attribute is invalid.',
  67. 'in_array' => 'The :attribute field does not exist in :other.',
  68. 'integer' => 'The :attribute must be an integer.',
  69. 'ip' => 'The :attribute must be a valid IP address.',
  70. 'ipv4' => 'The :attribute must be a valid IPv4 address.',
  71. 'ipv6' => 'The :attribute must be a valid IPv6 address.',
  72. 'json' => 'The :attribute must be a valid JSON string.',
  73. 'lowercase' => 'The :attribute must be lowercase.',
  74. 'lt' => [
  75. 'array' => 'The :attribute must have less than :value items.',
  76. 'file' => 'The :attribute must be less than :value kilobytes.',
  77. 'numeric' => 'The :attribute must be less than :value.',
  78. 'string' => 'The :attribute must be less than :value characters.',
  79. ],
  80. 'lte' => [
  81. 'array' => 'The :attribute must not have more than :value items.',
  82. 'file' => 'The :attribute must be less than or equal to :value kilobytes.',
  83. 'numeric' => 'The :attribute must be less than or equal to :value.',
  84. 'string' => 'The :attribute must be less than or equal to :value characters.',
  85. ],
  86. 'mac_address' => 'The :attribute must be a valid MAC address.',
  87. 'max' => [
  88. 'array' => 'The :attribute must not have more than :max items.',
  89. 'file' => 'The :attribute must not be greater than :max kilobytes.',
  90. 'numeric' => 'The :attribute must not be greater than :max.',
  91. 'string' => 'The :attribute must not be greater than :max characters.',
  92. ],
  93. 'max_digits' => 'The :attribute must not have more than :max digits.',
  94. 'mimes' => 'The :attribute must be a file of type: :values.',
  95. 'mimetypes' => 'The :attribute must be a file of type: :values.',
  96. 'min' => [
  97. 'array' => 'The :attribute must have at least :min items.',
  98. 'file' => 'The :attribute must be at least :min kilobytes.',
  99. 'numeric' => 'The :attribute must be at least :min.',
  100. 'string' => 'The :attribute must be at least :min characters.',
  101. ],
  102. 'min_digits' => 'The :attribute must have at least :min digits.',
  103. 'missing' => 'The :attribute field must be missing.',
  104. 'missing_if' => 'The :attribute field must be missing when :other is :value.',
  105. 'missing_unless' => 'The :attribute field must be missing unless :other is :value.',
  106. 'missing_with' => 'The :attribute field must be missing when :values is present.',
  107. 'missing_with_all' => 'The :attribute field must be missing when :values are present.',
  108. 'multiple_of' => 'The :attribute must be a multiple of :value.',
  109. 'not_in' => 'The selected :attribute is invalid.',
  110. 'not_regex' => 'The :attribute format is invalid.',
  111. 'numeric' => 'The :attribute must be a number.',
  112. 'password' => [
  113. 'letters' => 'The :attribute must contain at least one letter.',
  114. 'mixed' => 'The :attribute must contain at least one uppercase and one lowercase letter.',
  115. 'numbers' => 'The :attribute must contain at least one number.',
  116. 'symbols' => 'The :attribute must contain at least one symbol.',
  117. 'uncompromised' => 'The given :attribute has appeared in a data leak. Please choose a different :attribute.',
  118. ],
  119. 'present' => 'The :attribute field must be present.',
  120. 'prohibited' => 'The :attribute field is prohibited.',
  121. 'prohibited_if' => 'The :attribute field is prohibited when :other is :value.',
  122. 'prohibited_unless' => 'The :attribute field is prohibited unless :other is in :values.',
  123. 'prohibits' => 'The :attribute field prohibits :other from being present.',
  124. 'regex' => 'The :attribute format is invalid.',
  125. 'required' => 'The :attribute field is required.',
  126. 'required_array_keys' => 'The :attribute field must contain entries for: :values.',
  127. 'required_if' => 'The :attribute field is required when :other is :value.',
  128. 'required_if_accepted' => 'The :attribute field is required when :other is accepted.',
  129. 'required_unless' => 'The :attribute field is required unless :other is in :values.',
  130. 'required_with' => 'The :attribute field is required when :values is present.',
  131. 'required_with_all' => 'The :attribute field is required when :values are present.',
  132. 'required_without' => 'The :attribute field is required when :values is not present.',
  133. 'required_without_all' => 'The :attribute field is required when none of :values are present.',
  134. 'same' => 'The :attribute and :other must match.',
  135. 'size' => [
  136. 'array' => 'The :attribute must contain :size items.',
  137. 'file' => 'The :attribute must be :size kilobytes.',
  138. 'numeric' => 'The :attribute must be :size.',
  139. 'string' => 'The :attribute must be :size characters.',
  140. ],
  141. 'starts_with' => 'The :attribute must start with one of the following: :values.',
  142. 'string' => 'The :attribute must be a string.',
  143. 'timezone' => 'The :attribute must be a valid timezone.',
  144. 'unique' => 'The :attribute has already been taken.',
  145. 'uploaded' => 'The :attribute failed to upload.',
  146. 'uppercase' => 'The :attribute must be uppercase.',
  147. 'url' => 'The :attribute must be a valid URL.',
  148. 'ulid' => 'The :attribute must be a valid ULID.',
  149. 'uuid' => 'The :attribute must be a valid UUID.',
  150. /*
  151. |--------------------------------------------------------------------------
  152. | Custom Validation Language Lines
  153. |--------------------------------------------------------------------------
  154. |
  155. | Here you may specify custom validation messages for attributes using the
  156. | convention "attribute.rule" to name the lines. This makes it quick to
  157. | specify a specific custom language line for a given attribute rule.
  158. |
  159. */
  160. 'custom' => [
  161. 'attribute-name' => [
  162. 'rule-name' => 'custom-message',
  163. ],
  164. ],
  165. /*
  166. |--------------------------------------------------------------------------
  167. | Custom Validation Attributes
  168. |--------------------------------------------------------------------------
  169. |
  170. | The following language lines are used to swap our attribute placeholder
  171. | with something more reader friendly such as "E-Mail Address" instead
  172. | of "email". This simply helps us make our message more expressive.
  173. |
  174. */
  175. 'attributes' => [],
  176. ];