validation.php 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | ข้อความการตรวจสอบ
  6. |--------------------------------------------------------------------------
  7. */
  8. 'accepted' => 'ฟิลด์ :attribute ต้องได้รับการยอมรับ',
  9. 'accepted_if' => 'ฟิลด์ :attribute ต้องได้รับการยอมรับเมื่อ :other เป็น :value',
  10. 'active_url' => 'ฟิลด์ :attribute ต้องเป็น URL ที่ถูกต้อง',
  11. 'after' => 'ฟิลด์ :attribute ต้องเป็นวันที่หลังจาก :date',
  12. 'after_or_equal' => 'ฟิลด์ :attribute ต้องเป็นวันที่หลังหรือเท่ากับ :date',
  13. 'alpha' => 'ฟิลด์ :attribute ต้องมีเฉพาะตัวอักษรเท่านั้น',
  14. 'alpha_dash' => 'ฟิลด์ :attribute ต้องมีเฉพาะตัวอักษร ตัวเลข ขีด และขีดล่างเท่านั้น',
  15. 'alpha_num' => 'ฟิลด์ :attribute ต้องมีเฉพาะตัวอักษรและตัวเลขเท่านั้น',
  16. 'any_of' => 'ฟิลด์ :attribute ไม่ถูกต้อง',
  17. 'array' => 'ฟิลด์ :attribute ต้องเป็นอาร์เรย์',
  18. 'ascii' => 'ฟิลด์ :attribute ต้องมีเฉพาะอักขระตัวเลขและสัญลักษณ์แบบไบต์เดียวเท่านั้น',
  19. 'before' => 'ฟิลด์ :attribute ต้องเป็นวันที่ก่อน :date',
  20. 'before_or_equal' => 'ฟิลด์ :attribute ต้องเป็นวันที่ก่อนหรือเท่ากับ :date',
  21. 'between' => [
  22. 'array' => 'ฟิลด์ :attribute ต้องมีระหว่าง :min ถึง :max รายการ',
  23. 'file' => 'ฟิลด์ :attribute ต้องมีขนาดระหว่าง :min ถึง :max กิโลไบต์',
  24. 'numeric' => 'ฟิลด์ :attribute ต้องอยู่ระหว่าง :min ถึง :max',
  25. 'string' => 'ฟิลด์ :attribute ต้องมีความยาวระหว่าง :min ถึง :max ตัวอักษร',
  26. ],
  27. 'boolean' => 'ฟิลด์ :attribute ต้องเป็นจริงหรือเท็จ',
  28. 'can' => 'ฟิลด์ :attribute มีค่าที่ไม่ได้รับอนุญาต',
  29. 'confirmed' => 'การยืนยันฟิลด์ :attribute ไม่ตรงกัน',
  30. 'contains' => 'ฟิลด์ :attribute ไม่มีค่าที่จำเป็น',
  31. 'current_password' => 'รหัสผ่านไม่ถูกต้อง',
  32. 'date' => 'ฟิลด์ :attribute ต้องเป็นวันที่ที่ถูกต้อง',
  33. 'date_equals' => 'ฟิลด์ :attribute ต้องเป็นวันที่เท่ากับ :date',
  34. 'date_format' => 'ฟิลด์ :attribute ต้องตรงกับรูปแบบ :format',
  35. 'decimal' => 'ฟิลด์ :attribute ต้องมีทศนิยม :decimal ตำแหน่ง',
  36. 'declined' => 'ฟิลด์ :attribute ต้องถูกปฏิเสธ',
  37. 'declined_if' => 'ฟิลด์ :attribute ต้องถูกปฏิเสธเมื่อ :other เป็น :value',
  38. 'different' => 'ฟิลด์ :attribute และ :other ต้องแตกต่างกัน',
  39. 'digits' => 'ฟิลด์ :attribute ต้องมี :digits หลัก',
  40. 'digits_between' => 'ฟิลด์ :attribute ต้องมีระหว่าง :min ถึง :max หลัก',
  41. 'dimensions' => 'ฟิลด์ :attribute มีขนาดรูปภาพไม่ถูกต้อง',
  42. 'distinct' => 'ฟิลด์ :attribute มีค่าซ้ำ',
  43. 'doesnt_contain' => 'ฟิลด์ :attribute ต้องไม่มี: :values',
  44. 'doesnt_end_with' => 'ฟิลด์ :attribute ต้องไม่ลงท้ายด้วย: :values',
  45. 'doesnt_start_with' => 'ฟิลด์ :attribute ต้องไม่ขึ้นต้นด้วย: :values',
  46. 'email' => 'ฟิลด์ :attribute ต้องเป็นที่อยู่อีเมลที่ถูกต้อง',
  47. 'encoding' => 'ฟิลด์ :attribute ต้องเข้ารหัสด้วย :encoding',
  48. 'ends_with' => 'ฟิลด์ :attribute ต้องลงท้ายด้วย: :values',
  49. 'enum' => ':attribute ที่เลือกไม่ถูกต้อง',
  50. 'exists' => ':attribute ที่เลือกไม่ถูกต้อง',
  51. 'extensions' => 'ฟิลด์ :attribute ต้องมีนามสกุลใดนามสกุลหนึ่งต่อไปนี้: :values',
  52. 'file' => 'ฟิลด์ :attribute ต้องเป็นไฟล์',
  53. 'filled' => 'ฟิลด์ :attribute ต้องมีค่า',
  54. 'gt' => [
  55. 'array' => 'ฟิลด์ :attribute ต้องมีมากกว่า :value รายการ',
  56. 'file' => 'ฟิลด์ :attribute ต้องใหญ่กว่า :value กิโลไบต์',
  57. 'numeric' => 'ฟิลด์ :attribute ต้องมากกว่า :value',
  58. 'string' => 'ฟิลด์ :attribute ต้องยาวกว่า :value ตัวอักษร',
  59. ],
  60. 'gte' => [
  61. 'array' => 'ฟิลด์ :attribute ต้องมี :value รายการขึ้นไป',
  62. 'file' => 'ฟิลด์ :attribute ต้องใหญ่กว่าหรือเท่ากับ :value กิโลไบต์',
  63. 'numeric' => 'ฟิลด์ :attribute ต้องมากกว่าหรือเท่ากับ :value',
  64. 'string' => 'ฟิลด์ :attribute ต้องยาว :value ตัวอักษรขึ้นไป',
  65. ],
  66. 'hex_color' => 'ฟิลด์ :attribute ต้องเป็นสีฐานสิบหกที่ถูกต้อง',
  67. 'image' => 'ฟิลด์ :attribute ต้องเป็นรูปภาพ',
  68. 'in' => ':attribute ที่เลือกไม่ถูกต้อง',
  69. 'in_array' => 'ฟิลด์ :attribute ต้องมีอยู่ใน :other',
  70. 'in_array_keys' => 'ฟิลด์ :attribute ต้องมีคีย์อย่างน้อยหนึ่งรายการต่อไปนี้: :values',
  71. 'integer' => 'ฟิลด์ :attribute ต้องเป็นจำนวนเต็ม',
  72. 'ip' => 'ฟิลด์ :attribute ต้องเป็นที่อยู่ IP ที่ถูกต้อง',
  73. 'ipv4' => 'ฟิลด์ :attribute ต้องเป็นที่อยู่ IPv4 ที่ถูกต้อง',
  74. 'ipv6' => 'ฟิลด์ :attribute ต้องเป็นที่อยู่ IPv6 ที่ถูกต้อง',
  75. 'json' => 'ฟิลด์ :attribute ต้องเป็นสตริง JSON ที่ถูกต้อง',
  76. 'list' => 'ฟิลด์ :attribute ต้องเป็นรายการ',
  77. 'lowercase' => 'ฟิลด์ :attribute ต้องเป็นตัวพิมพ์เล็ก',
  78. 'lt' => [
  79. 'array' => 'ฟิลด์ :attribute ต้องมีน้อยกว่า :value รายการ',
  80. 'file' => 'ฟิลด์ :attribute ต้องเล็กกว่า :value กิโลไบต์',
  81. 'numeric' => 'ฟิลด์ :attribute ต้องน้อยกว่า :value',
  82. 'string' => 'ฟิลด์ :attribute ต้องสั้นกว่า :value ตัวอักษร',
  83. ],
  84. 'lte' => [
  85. 'array' => 'ฟิลด์ :attribute ต้องไม่เกิน :value รายการ',
  86. 'file' => 'ฟิลด์ :attribute ต้องเล็กกว่าหรือเท่ากับ :value กิโลไบต์',
  87. 'numeric' => 'ฟิลด์ :attribute ต้องน้อยกว่าหรือเท่ากับ :value',
  88. 'string' => 'ฟิลด์ :attribute ต้องไม่เกิน :value ตัวอักษร',
  89. ],
  90. 'mac_address' => 'ฟิลด์ :attribute ต้องเป็นที่อยู่ MAC ที่ถูกต้อง',
  91. 'max' => [
  92. 'array' => 'ฟิลด์ :attribute ต้องไม่เกิน :max รายการ',
  93. 'file' => 'ฟิลด์ :attribute ต้องไม่เกิน :max กิโลไบต์',
  94. 'numeric' => 'ฟิลด์ :attribute ต้องไม่เกิน :max',
  95. 'string' => 'ฟิลด์ :attribute ต้องไม่เกิน :max ตัวอักษร',
  96. ],
  97. 'max_digits' => 'ฟิลด์ :attribute ต้องไม่เกิน :max หลัก',
  98. 'mimes' => 'ฟิลด์ :attribute ต้องเป็นไฟล์ประเภท: :values',
  99. 'mimetypes' => 'ฟิลด์ :attribute ต้องเป็นไฟล์ประเภท: :values',
  100. 'min' => [
  101. 'array' => 'ฟิลด์ :attribute ต้องมีอย่างน้อย :min รายการ',
  102. 'file' => 'ฟิลด์ :attribute ต้องมีอย่างน้อย :min กิโลไบต์',
  103. 'numeric' => 'ฟิลด์ :attribute ต้องมีอย่างน้อย :min',
  104. 'string' => 'ฟิลด์ :attribute ต้องมีอย่างน้อย :min ตัวอักษร',
  105. ],
  106. 'min_digits' => 'ฟิลด์ :attribute ต้องมีอย่างน้อย :min หลัก',
  107. 'missing' => 'ฟิลด์ :attribute ต้องไม่มี',
  108. 'missing_if' => 'ฟิลด์ :attribute ต้องไม่มีเมื่อ :other เป็น :value',
  109. 'missing_unless' => 'ฟิลด์ :attribute ต้องไม่มีเว้นแต่ :other เป็น :value',
  110. 'missing_with' => 'ฟิลด์ :attribute ต้องไม่มีเมื่อ :values มีอยู่',
  111. 'missing_with_all' => 'ฟิลด์ :attribute ต้องไม่มีเมื่อ :values มีอยู่',
  112. 'multiple_of' => 'ฟิลด์ :attribute ต้องเป็นพหุคูณของ :value',
  113. 'not_in' => ':attribute ที่เลือกไม่ถูกต้อง',
  114. 'not_regex' => 'รูปแบบฟิลด์ :attribute ไม่ถูกต้อง',
  115. 'numeric' => 'ฟิลด์ :attribute ต้องเป็นตัวเลข',
  116. 'password' => [
  117. 'letters' => 'ฟิลด์ :attribute ต้องมีอย่างน้อยหนึ่งตัวอักษร',
  118. 'mixed' => 'ฟิลด์ :attribute ต้องมีอย่างน้อยหนึ่งตัวพิมพ์ใหญ่และหนึ่งตัวพิมพ์เล็ก',
  119. 'numbers' => 'ฟิลด์ :attribute ต้องมีอย่างน้อยหนึ่งตัวเลข',
  120. 'symbols' => 'ฟิลด์ :attribute ต้องมีอย่างน้อยหนึ่งสัญลักษณ์',
  121. 'uncompromised' => ':attribute ที่ให้มามีการปรากฏในการรั่วไหลของข้อมูล กรุณาเลือก :attribute อื่น',
  122. ],
  123. 'present' => 'ฟิลด์ :attribute ต้องมีอยู่',
  124. 'present_if' => 'ฟิลด์ :attribute ต้องมีอยู่เมื่อ :other เป็น :value',
  125. 'present_unless' => 'ฟิลด์ :attribute ต้องมีอยู่เว้นแต่ :other เป็น :value',
  126. 'present_with' => 'ฟิลด์ :attribute ต้องมีอยู่เมื่อ :values มีอยู่',
  127. 'present_with_all' => 'ฟิลด์ :attribute ต้องมีอยู่เมื่อ :values มีอยู่',
  128. 'prohibited' => 'ฟิลด์ :attribute ถูกห้าม',
  129. 'prohibited_if' => 'ฟิลด์ :attribute ถูกห้ามเมื่อ :other เป็น :value',
  130. 'prohibited_if_accepted' => 'ฟิลด์ :attribute ถูกห้ามเมื่อ :other ถูกยอมรับ',
  131. 'prohibited_if_declined' => 'ฟิลด์ :attribute ถูกห้ามเมื่อ :other ถูกปฏิเสธ',
  132. 'prohibited_unless' => 'ฟิลด์ :attribute ถูกห้ามเว้นแต่ :other อยู่ใน :values',
  133. 'prohibits' => 'ฟิลด์ :attribute ห้าม :other มีอยู่',
  134. 'regex' => 'รูปแบบฟิลด์ :attribute ไม่ถูกต้อง',
  135. 'required' => 'ฟิลด์ :attribute จำเป็นต้องมี',
  136. 'required_array_keys' => 'ฟิลด์ :attribute ต้องมีรายการสำหรับ: :values',
  137. 'required_if' => 'ฟิลด์ :attribute จำเป็นต้องมีเมื่อ :other เป็น :value',
  138. 'required_if_accepted' => 'ฟิลด์ :attribute จำเป็นต้องมีเมื่อ :other ถูกยอมรับ',
  139. 'required_if_declined' => 'ฟิลด์ :attribute จำเป็นต้องมีเมื่อ :other ถูกปฏิเสธ',
  140. 'required_unless' => 'ฟิลด์ :attribute จำเป็นต้องมีเว้นแต่ :other อยู่ใน :values',
  141. 'required_with' => 'ฟิลด์ :attribute จำเป็นต้องมีเมื่อ :values มีอยู่',
  142. 'required_with_all' => 'ฟิลด์ :attribute จำเป็นต้องมีเมื่อ :values มีอยู่',
  143. 'required_without' => 'ฟิลด์ :attribute จำเป็นต้องมีเมื่อ :values ไม่มีอยู่',
  144. 'required_without_all' => 'ฟิลด์ :attribute จำเป็นต้องมีเมื่อไม่มี :values',
  145. 'same' => 'ฟิลด์ :attribute และ :other ต้องตรงกัน',
  146. 'size' => [
  147. 'array' => 'ฟิลด์ :attribute ต้องมี :size รายการ',
  148. 'file' => 'ฟิลด์ :attribute ต้องมีขนาด :size กิโลไบต์',
  149. 'numeric' => 'ฟิลด์ :attribute ต้องเป็น :size',
  150. 'string' => 'ฟิลด์ :attribute ต้องมีความยาว :size ตัวอักษร',
  151. ],
  152. 'starts_with' => 'ฟิลด์ :attribute ต้องขึ้นต้นด้วย: :values',
  153. 'string' => 'ฟิลด์ :attribute ต้องเป็นสตริง',
  154. 'timezone' => 'ฟิลด์ :attribute ต้องเป็นเขตเวลาที่ถูกต้อง',
  155. 'unique' => ':attribute ถูกใช้ไปแล้ว',
  156. 'uploaded' => 'การอัปโหลด :attribute ล้มเหลว',
  157. 'uppercase' => 'ฟิลด์ :attribute ต้องเป็นตัวพิมพ์ใหญ่',
  158. 'url' => 'ฟิลด์ :attribute ต้องเป็น URL ที่ถูกต้อง',
  159. 'ulid' => 'ฟิลด์ :attribute ต้องเป็น ULID ที่ถูกต้อง',
  160. 'uuid' => 'ฟิลด์ :attribute ต้องเป็น UUID ที่ถูกต้อง',
  161. 'custom' => [
  162. 'attribute-name' => [
  163. 'rule-name' => 'custom-message',
  164. ],
  165. ],
  166. 'attributes' => [],
  167. ];