validation.php 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. <?php
  2. /*
  3. |--------------------------------------------------------------------------
  4. | Validation Language Lines
  5. |--------------------------------------------------------------------------
  6. |
  7. | The following language lines contain the default error messages used by
  8. | the validator class. Some of these rules have multiple versions such
  9. | as the size rules. Feel free to tweak each of these messages here.
  10. |
  11. */
  12. return [
  13. 'accepted' => 'ข้อมูล :attribute ต้องผ่านการยอมรับก่อน',
  14. 'accepted_if' => 'The :attribute must be accepted when :other is :value.',
  15. 'active_url' => 'ข้อมูล :attribute ต้องเป็น URL เท่านั้น',
  16. 'after' => 'ข้อมูล :attribute ต้องเป็นวันที่หลังจาก :date.',
  17. 'after_or_equal' => 'ข้อมูล :attribute ต้องเป็นวันที่ตั้งแต่วันที่ :date หรือหลังจากนั้น.',
  18. 'alpha' => 'ข้อมูล :attribute ต้องเป็นตัวอักษรภาษาอังกฤษเท่านั้น',
  19. 'alpha_dash' => 'ข้อมูล :attribute ต้องเป็นตัวอักษรภาษาอังกฤษ ตัวเลข และ _ เท่านั้น',
  20. 'alpha_num' => 'ข้อมูล :attribute ต้องเป็นตัวอักษรภาษาอังกฤษ ตัวเลข เท่านั้น',
  21. 'array' => 'ข้อมูล :attribute ต้องเป็น array เท่านั้น',
  22. 'attached' => 'นี่ :attribute แล้วมาเกี่ยวข้อง',
  23. 'before' => 'ข้อมูล :attribute ต้องเป็นวันที่ก่อน :date.',
  24. 'before_or_equal' => 'ข้อมูล :attribute ต้องเป็นวันที่ก่อนหรือเท่ากับวันที่ :date.',
  25. 'between' => [
  26. 'array' => 'ข้อมูล :attribute ต้องมีค่าระหว่าง :min - :max ค่า',
  27. 'file' => 'ข้อมูล :attribute ต้องมีขนาดระหว่าง :min - :max กิโลไบต์',
  28. 'numeric' => 'ข้อมูล :attribute ต้องอยู่ในช่วงระหว่าง :min - :max.',
  29. 'string' => 'ข้อมูล :attribute ต้องมีความยาวตัวอักษรระหว่าง :min - :max ตัวอักษร',
  30. ],
  31. 'boolean' => 'ข้อมูล :attribute ต้องเป็นจริง หรือเท็จ เท่านั้น',
  32. 'confirmed' => 'ข้อมูล :attribute ไม่ตรงกัน',
  33. 'current_password' => 'The password is incorrect.',
  34. 'date' => 'ข้อมูล :attribute ต้องเป็นวันที่',
  35. 'date_equals' => 'ข้อมูล :attribute ต้องเป็นวันที่ที่เท่ากับ :date',
  36. 'date_format' => 'ข้อมูล :attribute ไม่ตรงกับข้อมูลกำหนด :format.',
  37. 'declined' => 'The :attribute must be declined.',
  38. 'declined_if' => 'The :attribute must be declined when :other is :value.',
  39. 'different' => 'ข้อมูล :attribute และ :other ต้องไม่เท่ากัน',
  40. 'digits' => 'ข้อมูล :attribute ต้องเป็น :digits',
  41. 'digits_between' => 'ข้อมูล :attribute ต้องอยู่ในช่วงระหว่าง :min ถึง :max',
  42. 'dimensions' => 'ข้อมูล :attribute มีขนาดไม่ถูกต้อง.',
  43. 'distinct' => 'ข้อมูล :attribute มีค่าที่ซ้ำกัน',
  44. 'email' => 'ข้อมูล :attribute ต้องเป็นอีเมล์',
  45. 'ends_with' => 'ที่ :attribute ต้องจบอย่างหนึ่งจากเกิดข้อผิดพลาดต่อไปนี้::values.',
  46. 'exists' => 'ข้อมูล ที่ถูกเลือกจาก :attribute ไม่ถูกต้อง',
  47. 'file' => 'ข้อมูล :attribute ต้องเป็นไฟล์.',
  48. 'filled' => 'ข้อมูล :attribute จำเป็นต้องกรอก',
  49. 'gt' => [
  50. 'array' => 'ข้อมูล :attribute ต้องมีมากกว่า :value ค่า.',
  51. 'file' => 'ข้อมูล :attribute ต้องมีขนาดมากกว่า :value กิโลไบต์.',
  52. 'numeric' => 'ข้อมูล :attribute ต้องมีค่ามากกว่า :value.',
  53. 'string' => 'ข้อมูล :attribute ต้องมีความยาวตัวอักษรมากกว่า :value ตัวอักษร.',
  54. ],
  55. 'gte' => [
  56. 'array' => 'ข้อมูล :attribute ต้องมี :value ค่า หรือมากกว่า.',
  57. 'file' => 'ข้อมูล :attribute ต้องมีขนาดมากกว่าหรือเท่ากับ :value กิโลไบต์.',
  58. 'numeric' => 'ข้อมูล :attribute ต้องมีค่ามากกว่าหรือเท่ากับ :value.',
  59. 'string' => 'ข้อมูล :attribute ต้องมีความยาวตัวอักษรมากกว่าหรือเท่ากับ :value ตัวอักษร.',
  60. ],
  61. 'image' => 'ข้อมูล :attribute ต้องเป็นรูปภาพ',
  62. 'in' => 'ข้อมูล ที่ถูกเลือกใน :attribute ไม่ถูกต้อง',
  63. 'in_array' => 'ข้อมูล :attribute ไม่มีอยู่ภายในค่าของ :other',
  64. 'integer' => 'ข้อมูล :attribute ต้องเป็นตัวเลข',
  65. 'ip' => 'ข้อมูล :attribute ต้องเป็น IP',
  66. 'ipv4' => 'ข้อมูล :attribute ต้องตรงตามรูปแบบ IPv4 address.',
  67. 'ipv6' => 'ข้อมูล :attribute ต้องตรงตามรูปแบบ IPv6 address.',
  68. 'json' => 'ข้อมูล :attribute ต้องเป็นอักขระ JSON ที่สมบูรณ์',
  69. 'lt' => [
  70. 'array' => 'ข้อมูล :attribute ต้องมีน้อยกว่า :value ค่า.',
  71. 'file' => 'ข้อมูล :attribute ต้องมีขนาดน้อยกว่า :value กิโลไบต์.',
  72. 'numeric' => 'ข้อมูล :attribute ต้องมีค่าน้อยกว่า :value.',
  73. 'string' => 'ข้อมูล :attribute ต้องมีความยาวตัวอักษรน้อยกว่า :value ตัวอักษร.',
  74. ],
  75. 'lte' => [
  76. 'array' => 'ข้อมูล :attribute ต้องมีไม่เกิน :value ค่า.',
  77. 'file' => 'ข้อมูล :attribute ต้องมีขนาดน้อยกว่าหรือเท่ากับ :value กิโลไบต์.',
  78. 'numeric' => 'ข้อมูล :attribute ต้องมีค่าน้อยกว่าหรือเท่ากับ :value.',
  79. 'string' => 'ข้อมูล :attribute ต้องมีความยาวตัวอักษรน้อยกว่าหรือเท่ากับ :value ตัวอักษร.',
  80. ],
  81. 'max' => [
  82. 'array' => 'ข้อมูล :attribute ต้องมีไม่เกิน :max ค่า',
  83. 'file' => 'ข้อมูล :attribute ต้องมีขนาดไม่เกิน :max กิโลไบต์',
  84. 'numeric' => 'ข้อมูล :attribute ต้องมีค่าไม่เกิน :max.',
  85. 'string' => 'ข้อมูล :attribute ต้องมีความยาวตัวอักษรไม่เกิน :max ตัวอักษร',
  86. ],
  87. 'mimes' => 'ข้อมูล :attribute ต้องเป็นชนิดไฟล์: :values.',
  88. 'mimetypes' => 'ข้อมูล :attribute ต้องเป็นชนิดไฟล์: :values.',
  89. 'min' => [
  90. 'array' => 'ข้อมูล :attribute ต้องมีอย่างน้อย :min ค่า',
  91. 'file' => 'ข้อมูล :attribute ต้องมีขนาดอย่างน้อย :min กิโลไบต์',
  92. 'numeric' => 'ข้อมูล :attribute ต้องมีค่าอย่างน้อย :min.',
  93. 'string' => 'ข้อมูล :attribute ต้องมีความยาวตัวอักษรอย่างน้อย :min ตัวอักษร',
  94. ],
  95. 'multiple_of' => 'ที่ :attribute นต้องมีหลายของ :value',
  96. 'not_in' => 'ข้อมูล ที่เลือกจาก :attribute ไม่ถูกต้อง',
  97. 'not_regex' => 'ข้อมูล :attribute มีรูปแบบไม่ถูกต้อง.',
  98. 'numeric' => 'ข้อมูล :attribute ต้องเป็นตัวเลข',
  99. 'password' => 'รหัสผ่านไม่ถูกต้อง',
  100. 'present' => 'ข้อมูล :attribute ต้องเป็นปัจจุบัน',
  101. 'prohibited' => 'ที่ :attribute ช่องข้อมูล prohibited.',
  102. 'prohibited_if' => 'ที่ :attribute ช่องข้อมูล prohibited ตอนที่ :other คือ :value.',
  103. 'prohibited_unless' => 'ที่ :attribute ช่องข้อมูล prohibited นอกจาก :other อยู่ใน :values.',
  104. 'prohibits' => 'The :attribute field prohibits :other from being present.',
  105. 'regex' => 'ข้อมูล :attribute มีรูปแบบไม่ถูกต้อง',
  106. 'relatable' => 'นี่ :attribute อาจจะไม่เกี่ยวข้องกับทรัพยากรนี้',
  107. 'required' => 'ข้อมูล :attribute จำเป็นต้องกรอก',
  108. 'required_if' => 'ข้อมูล :attribute จำเป็นต้องกรอกเมื่อ :other เป็น :value.',
  109. 'required_unless' => 'ข้อมูล :attribute จำเป็นต้องกรอกเว้นแต่ :other เป็น :values.',
  110. 'required_with' => 'ข้อมูล :attribute จำเป็นต้องกรอกเมื่อ :values มีค่า',
  111. 'required_with_all' => 'ข้อมูล :attribute จำเป็นต้องกรอกเมื่อ :values มีค่าทั้งหมด',
  112. 'required_without' => 'ข้อมูล :attribute จำเป็นต้องกรอกเมื่อ :values ไม่มีค่า',
  113. 'required_without_all' => 'ข้อมูล :attribute จำเป็นต้องกรอกเมื่อ :values ไม่มีค่าทั้งหมด',
  114. 'same' => 'ข้อมูล :attribute และ :other ต้องถูกต้อง',
  115. 'size' => [
  116. 'array' => 'ข้อมูล :attribute ต้องเท่ากับ :size ค่า',
  117. 'file' => 'ข้อมูล :attribute ต้องเท่ากับ :size กิโลไบต์',
  118. 'numeric' => 'ข้อมูล :attribute ต้องเท่ากับ :size',
  119. 'string' => 'ข้อมูล :attribute ต้องเท่ากับ :size ตัวอักษร',
  120. ],
  121. 'starts_with' => 'ข้อมูล :attribute ต้องเริ่มด้วยค่าใดค่าหนึ่งต่อไปนี้: :values',
  122. 'string' => 'ข้อมูล :attribute ต้องเป็นอักขระ',
  123. 'timezone' => 'ข้อมูล :attribute ต้องเป็นข้อมูลเขตเวลาที่ถูกต้อง',
  124. 'unique' => 'ข้อมูล :attribute ไม่สามารถใช้ได้',
  125. 'uploaded' => 'ข้อมูล :attribute ไม่สามารพอัพโหลดได้.',
  126. 'url' => 'ข้อมูล :attribute ไม่ถูกต้อง',
  127. 'uuid' => 'ข้อมูล :attribute ต้องเป็นค่า UUID ที่ถูกต้อง',
  128. 'custom' => [
  129. 'attribute-name' => [
  130. 'rule-name' => 'custom-message',
  131. ],
  132. ],
  133. ];