validation.php 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Validation Language Lines
  6. |--------------------------------------------------------------------------
  7. |
  8. | 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' => ':attribute 必须同意',
  14. 'active_url' => ':attribute 不是有效URL',
  15. 'after' => ':attribute 必须是在 :date 之后',
  16. 'after_or_equal' => ':attribute 必须是等于或在 :date 之后',
  17. 'alpha' => ':attribute 只能包含字母',
  18. 'alpha_dash' => ':attribute 只能包含字母、数字、破折号和下划线',
  19. 'alpha_num' => ':attribute 只能包含字母、数字',
  20. 'array' => ':attribute 必须是数组',
  21. 'before' => ':attribute 必须是在 :date 之前',
  22. 'before_or_equal' => ':attribute 必须是等于或在 :date 之前',
  23. 'between' => [
  24. 'numeric' => ':attribute 必须介于 :min 与 :max 之间.',
  25. 'file' => ':attribute 必须介于 :min 与 :max KB 之间',
  26. 'string' => ':attribute 必须介于 :min 与 :max 字符 之间.',
  27. 'array' => ':attribute 必须介于 :min 与 :max 之间',
  28. ],
  29. 'boolean' => ':attribute 请选是或否,必须是布尔值',
  30. 'confirmed' => ':attribute 确认不匹配',
  31. 'date' => ':attribute 不是有效日期',
  32. 'date_equals' => ':attribute 日期必须等于 :date.',
  33. 'date_format' => ':attribute 不匹配格式 :format.',
  34. 'different' => ':attribute 和 :other 必须不同',
  35. 'digits' => ':attribute 必须是 :digits 位数.',
  36. 'digits_between' => ':attribute 必须介于 :min 与 :max 位之间.',
  37. 'dimensions' => ':attribute 图像尺寸无效',
  38. 'distinct' => ':attribute 字段有重复的值',
  39. 'email' => ':attribute 必须是有效的电子邮件地址',
  40. 'ends_with' => ':attribute 必须以下列之一结束: :values',
  41. 'exists' => ':attribute 选择的相关值不存在',
  42. 'file' => ':attribute 必须是文件',
  43. 'filled' => ':attribute 字段必须有值',
  44. 'gt' => [
  45. 'numeric' => ':attribute 必须大于 :value',
  46. 'file' => ':attribute 必须大于 :value KB',
  47. 'string' => ':attribute 必须大于 :value 字符',
  48. 'array' => ':attribute 必须有更多 :value',
  49. ],
  50. 'gte' => [
  51. 'numeric' => ':attribute 必须大于或等于 :value.',
  52. 'file' => ':attribute 必须大于或等于 :value KB.',
  53. 'string' => ':attribute 必须大于或等于 :value 字符.',
  54. 'array' => ':attribute 必须有 :value 或更多',
  55. ],
  56. 'image' => ':attribute 必须是图像',
  57. 'in' => ' :attribute 不在合法值内',
  58. 'in_array' => ':attribute 字段不存在 :other.',
  59. 'integer' => ':attribute 必须为整数',
  60. 'ip' => ':attribute 必须是有效 IP 地址',
  61. 'ipv4' => ':attribute 必须是有效 IPv4 地址',
  62. 'ipv6' => ':attribute 必须是有效 IPv6 地址',
  63. 'jsonData' => ':attribute 必须是有效json字符串',
  64. 'lt' => [
  65. 'numeric' => ':attribute 必须小于 :value',
  66. 'file' => ':attribute 必须小于 :value KB',
  67. 'string' => ':attribute 必须小于 :value 字符',
  68. 'array' => ':attribute 必须小于 :value ',
  69. ],
  70. 'lte' => [
  71. 'numeric' => ':attribute 必须小于或等于 :value',
  72. 'file' => ':attribute 必须小于或等于 :value KB',
  73. 'string' => ':attribute 必须小于或等于 :value 字符',
  74. 'array' => ':attribute 不能超过 :value ',
  75. ],
  76. 'max' => [
  77. 'numeric' => ':attribute 不能大于 :max',
  78. 'file' => ':attribute 不能大于 :max KB',
  79. 'string' => ':attribute 不能大于 :max 个字符',
  80. 'array' => ':attribute 不能超过 :max ',
  81. ],
  82. 'mimes' => ':attribute 必须是一个类型的文件: :values.',
  83. 'mimetypes' => ':attribute 必须是一个类型的文件: :values.',
  84. 'min' => [
  85. 'numeric' => ':attribute 至少 :min',
  86. 'file' => ':attribute 至少 :min KB',
  87. 'string' => ':attribute 至少 :min 字符',
  88. 'array' => ':attribute 必须至少有 :min ',
  89. ],
  90. 'not_in' => '挑选 :attribute 是无效的',
  91. 'not_regex' => ':attribute 格式是无效的',
  92. 'numeric' => ':attribute 必须是数字',
  93. 'present' => ':attribute 字段必须存在',
  94. 'regex' => ':attribute 格式是无效',
  95. 'required' => ':attribute 字段不能为空',
  96. 'required_if' => ':attribute 字段必须存在 当:other 是 :value',
  97. 'required_unless' => ':attribute 字段是必需的 除非 :other 介于 :values.',
  98. 'required_with' => '当 :values 存在:attribute 字段是必需的',
  99. 'required_with_all' => '当 :values 存在 :attribute 字段是必需的',
  100. 'required_without' => ':values 与 :attribute 至少填写一项',
  101. 'required_without_all' => '当 :values 不存在 :attribute 字段是必需的',
  102. 'same' => ':attribute 与 :other 必须一致',
  103. 'size' => [
  104. 'numeric' => ':attribute 必须是 :size.',
  105. 'file' => ':attribute 必须是 :size KB',
  106. 'string' => ':attribute 必须是 :size 字符',
  107. 'array' => ':attribute 必须包含 :size ',
  108. ],
  109. 'starts_with' => ':attribute 必须以下列之一开头: :values',
  110. 'string' => ':attribute 必须是字符串',
  111. 'timezone' => ':attribute 必须是一个有效的区域',
  112. 'unique' => ':attribute 已经存在,不能重复!',
  113. 'uploaded' => ':attribute 未能上传',
  114. 'url' => ':attribute 格式是无效',
  115. 'uuid' => ':attribute 必须是有效的UUID',
  116. 'identity_cards' => ':attribute 身份证号错误',
  117. /*
  118. |--------------------------------------------------------------------------
  119. | Custom Validation Language Lines
  120. |--------------------------------------------------------------------------
  121. |
  122. | Here you may specify custom validation messages for attributes using the
  123. | convention "attribute.rule" to name the lines. This makes it quick to
  124. | specify a specific custom language line for a given attribute rule.
  125. |
  126. */
  127. 'custom' => [
  128. 'attribute-name' => [
  129. 'rule-name' => 'custom-message',
  130. ],
  131. ],
  132. /*
  133. |--------------------------------------------------------------------------
  134. | Custom Validation Attributes
  135. |--------------------------------------------------------------------------
  136. |
  137. | following language lines are used to swap our attribute placeholder
  138. | with something more reader friendly such as "E-Mail Address" instead
  139. | of "email". This simply helps us make our message more expressive.
  140. |
  141. */
  142. 'attributes' => [],
  143. ];