validation.php 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Validation Language Lines
  6. |--------------------------------------------------------------------------
  7. */
  8. 'mimetypes' => ':attribute 的文件类型必须是::values。',
  9. 'mimes' => ':attribute 的文件格式必须是::values。',
  10. 'max' => [
  11. 'string' => ':attribute 不能超过 :max 个字符。',
  12. 'file' => ':attribute 不能超过 :max KB。',
  13. 'array' => ':attribute 不能超过 :max 项。',
  14. 'numeric' => ':attribute 不能大于 :max。',
  15. ],
  16. 'min' => [
  17. 'string' => ':attribute 不能少于 :min 个字符。',
  18. 'file' => ':attribute 不能小于 :min KB。',
  19. 'array' => ':attribute 不能少于 :min 项。',
  20. 'numeric' => ':attribute 不能小于 :min。',
  21. ],
  22. 'attributes' => [
  23. 'markdown_file' => 'Markdown 文件',
  24. 'original_markdown' => 'Markdown 内容',
  25. 'file_name' => '文件名(来源名称)',
  26. ],
  27. ];