validation.php 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  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' => ':attribute 必须是被接受的.',
  14. 'active_url' => ':attribute 不是有效的URL.',
  15. 'after' => ':attribute 必须是 :date 之后的一个日期',
  16. 'after_or_equal' => 'The :attribute must be a date after or equal to :date.',
  17. 'alpha' => ':attribute 必须全部由字母字符构成。',
  18. 'alpha_dash' => ':attribute 必须全部由字母、数字、中划线或下划线字符构成',
  19. 'alpha_num' => ':attribute 必须全部由字母和数字构成',
  20. 'array' => ':attribute 必须是个数组',
  21. 'before' => ':attribute 必须是 :date 之前的一个日期',
  22. 'before_or_equal' => 'The :attribute must be a date before or equal to :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 字符必须是 true 或 false',
  30. 'confirmed' => ':attribute 二次确认不匹配',
  31. 'date' => ':attribute 必须是一个合法的日期',
  32. 'date_equals' => 'The :attribute must be a date equal to :date.',
  33. 'date_format' => ':attribute 与给定的格式 :format 不符合',
  34. 'different' => ':attribute 必须不同于:other',
  35. 'digits' => ':attribute 必须是 :digits 位',
  36. 'digits_between' => ':attribute 必须在 :min and :max 位之间',
  37. 'dimensions' => 'The :attribute has invalid image dimensions.',
  38. 'distinct' => 'The :attribute field has a duplicate value.',
  39. 'email' => ':attribute 必须是一个合法的电子邮件地址。',
  40. 'ends_with' => 'The :attribute must end with one of the following: :values.',
  41. 'exists' => '选定的 :attribute 是无效的',
  42. 'file' => 'The :attribute must be a file.',
  43. 'filled' => ':attribute 的字段是必填的',
  44. 'gt' => [
  45. 'numeric' => ':attribute 必须大于 :value。',
  46. 'file' => ':attribute 必须大于 :value 字节。',
  47. 'string' => ':attribute 必须大于 :value 字符。',
  48. 'array' => ':attribute 必须大于 :value 条数据。',
  49. ],
  50. 'gte' => [
  51. 'numeric' => ':attribute 必须大于或等于 :value。',
  52. 'file' => ':attribute 必须大于或等于 :value 字节。',
  53. 'string' => ':attribute 必须大于或等于 :value 字符。',
  54. 'array' => ':attribute 必须大于或等于 :value 条数据。',
  55. ],
  56. 'image' => ':attribute 必须是一个图片 (jpeg, png, bmp 或者 gif)',
  57. 'in' => '选定的 :attribute 是无效的',
  58. 'in_array' => 'The :attribute field does not exist in :other.',
  59. 'integer' => 'The :attribute must be an integer.',
  60. 'ip' => ':attribute 必须是有效的IP地址。',
  61. 'ipv4' => ':attribute 必须是有效的IPv4地址。',
  62. 'ipv6' => ':attribute 必须是有效的IPv6地址。',
  63. 'json' => ':attribute 必须是有效的JSON字符串。',
  64. 'lt' => [
  65. 'numeric' => ':attribute 必须小于 :value。',
  66. 'file' => ':attribute 必须小于 :value 字节。',
  67. 'string' => ':attribute 必须小于 :value 字符。',
  68. 'array' => ':attribute 必须小于 :value 条数据。',
  69. ],
  70. 'lte' => [
  71. 'numeric' => ':attribute 必须小于或等于 :value。',
  72. 'file' => ':attribute 必须小于或等于 :value 字节。',
  73. 'string' => ':attribute 必须小于或等于 :value 字符。',
  74. 'array' => ':attribute 必须小于或等于 :value 条数据。',
  75. ],
  76. 'max' => [
  77. 'numeric' => ':attribute 的最大长度为 :max 位',
  78. 'file' => ':attribute 的最大为 :max',
  79. 'string' => ':attribute 的最大长度为 :max 字符',
  80. 'array' => ':attribute 的最大个数为 :max 个',
  81. ],
  82. 'mimes' => ':attribute 的文件类型必须是:values',
  83. 'mimetypes' => 'The :attribute must be a file of type: :values.',
  84. 'min' => [
  85. 'numeric' => ':attribute 的最小长度为 :min 位',
  86. 'string' => ':attribute 的最小长度为 :min 字符',
  87. 'file' => ':attribute 大小至少为:min KB',
  88. 'array' => ':attribute 至少有 :min 项',
  89. ],
  90. 'not_in' => '选定的 :attribute 是无效的',
  91. 'not_regex' => 'The :attribute format is invalid.',
  92. 'numeric' => ':attribute 必须是数字',
  93. 'password' => 'The password is incorrect.',
  94. 'present' => ':attribute 字段必须存在',
  95. 'regex' => ':attribute 格式是无效的',
  96. 'required' => ':attribute 不能为空!',
  97. 'required_if' => ':attribute 字段是必须的当 :other 是 :value',
  98. 'required_unless' => ':attribute 字段是必须的,除非 :other 是在 :values 中',
  99. 'required_with' => ':attribute 字段是必须的当 :values 是存在的',
  100. 'required_with_all' => ':attribute 字段是必须的当 :values 是存在的',
  101. 'required_without' => ':attribute 字段是必须的当 :values 是不存在的',
  102. 'required_without_all' => ':attribute 字段是必须的当 没有一个 :values 是存在的',
  103. 'same' => ':attribute 和 :other 必须匹配',
  104. 'size' => [
  105. 'numeric' => ':attribute 必须是 :size 位',
  106. 'file' => ':attribute 必须是 :size KB',
  107. 'string' => ':attribute 必须是 :size 个字符',
  108. 'array' => ':attribute 必须包括 :size 项',
  109. ],
  110. 'starts_with' => 'The :attribute must start with one of the following: :values.',
  111. 'string' => ':attribute 必须是一个字符串',
  112. 'timezone' => ':attribute 必须是个有效的时区.',
  113. 'unique' => ':attribute 已存在',
  114. 'uploaded' => 'The :attribute failed to upload.',
  115. 'url' => ':attribute 无效的格式',
  116. 'uuid' => 'The :attribute must be a valid UUID.',
  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. | The 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. ];