171 lines
16 KiB
PHP
171 lines
16 KiB
PHP
<?php
|
|
|
|
return [
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| ข้อความการตรวจสอบ
|
|
|--------------------------------------------------------------------------
|
|
*/
|
|
'accepted' => 'ฟิลด์ :attribute ต้องได้รับการยอมรับ',
|
|
'accepted_if' => 'ฟิลด์ :attribute ต้องได้รับการยอมรับเมื่อ :other เป็น :value',
|
|
'active_url' => 'ฟิลด์ :attribute ต้องเป็น URL ที่ถูกต้อง',
|
|
'after' => 'ฟิลด์ :attribute ต้องเป็นวันที่หลังจาก :date',
|
|
'after_or_equal' => 'ฟิลด์ :attribute ต้องเป็นวันที่หลังหรือเท่ากับ :date',
|
|
'alpha' => 'ฟิลด์ :attribute ต้องมีเฉพาะตัวอักษรเท่านั้น',
|
|
'alpha_dash' => 'ฟิลด์ :attribute ต้องมีเฉพาะตัวอักษร ตัวเลข ขีด และขีดล่างเท่านั้น',
|
|
'alpha_num' => 'ฟิลด์ :attribute ต้องมีเฉพาะตัวอักษรและตัวเลขเท่านั้น',
|
|
'any_of' => 'ฟิลด์ :attribute ไม่ถูกต้อง',
|
|
'array' => 'ฟิลด์ :attribute ต้องเป็นอาร์เรย์',
|
|
'ascii' => 'ฟิลด์ :attribute ต้องมีเฉพาะอักขระตัวเลขและสัญลักษณ์แบบไบต์เดียวเท่านั้น',
|
|
'before' => 'ฟิลด์ :attribute ต้องเป็นวันที่ก่อน :date',
|
|
'before_or_equal' => 'ฟิลด์ :attribute ต้องเป็นวันที่ก่อนหรือเท่ากับ :date',
|
|
'between' => [
|
|
'array' => 'ฟิลด์ :attribute ต้องมีระหว่าง :min ถึง :max รายการ',
|
|
'file' => 'ฟิลด์ :attribute ต้องมีขนาดระหว่าง :min ถึง :max กิโลไบต์',
|
|
'numeric' => 'ฟิลด์ :attribute ต้องอยู่ระหว่าง :min ถึง :max',
|
|
'string' => 'ฟิลด์ :attribute ต้องมีความยาวระหว่าง :min ถึง :max ตัวอักษร',
|
|
],
|
|
'boolean' => 'ฟิลด์ :attribute ต้องเป็นจริงหรือเท็จ',
|
|
'can' => 'ฟิลด์ :attribute มีค่าที่ไม่ได้รับอนุญาต',
|
|
'confirmed' => 'การยืนยันฟิลด์ :attribute ไม่ตรงกัน',
|
|
'contains' => 'ฟิลด์ :attribute ไม่มีค่าที่จำเป็น',
|
|
'current_password' => 'รหัสผ่านไม่ถูกต้อง',
|
|
'date' => 'ฟิลด์ :attribute ต้องเป็นวันที่ที่ถูกต้อง',
|
|
'date_equals' => 'ฟิลด์ :attribute ต้องเป็นวันที่เท่ากับ :date',
|
|
'date_format' => 'ฟิลด์ :attribute ต้องตรงกับรูปแบบ :format',
|
|
'decimal' => 'ฟิลด์ :attribute ต้องมีทศนิยม :decimal ตำแหน่ง',
|
|
'declined' => 'ฟิลด์ :attribute ต้องถูกปฏิเสธ',
|
|
'declined_if' => 'ฟิลด์ :attribute ต้องถูกปฏิเสธเมื่อ :other เป็น :value',
|
|
'different' => 'ฟิลด์ :attribute และ :other ต้องแตกต่างกัน',
|
|
'digits' => 'ฟิลด์ :attribute ต้องมี :digits หลัก',
|
|
'digits_between' => 'ฟิลด์ :attribute ต้องมีระหว่าง :min ถึง :max หลัก',
|
|
'dimensions' => 'ฟิลด์ :attribute มีขนาดรูปภาพไม่ถูกต้อง',
|
|
'distinct' => 'ฟิลด์ :attribute มีค่าซ้ำ',
|
|
'doesnt_contain' => 'ฟิลด์ :attribute ต้องไม่มี: :values',
|
|
'doesnt_end_with' => 'ฟิลด์ :attribute ต้องไม่ลงท้ายด้วย: :values',
|
|
'doesnt_start_with' => 'ฟิลด์ :attribute ต้องไม่ขึ้นต้นด้วย: :values',
|
|
'email' => 'ฟิลด์ :attribute ต้องเป็นที่อยู่อีเมลที่ถูกต้อง',
|
|
'encoding' => 'ฟิลด์ :attribute ต้องเข้ารหัสด้วย :encoding',
|
|
'ends_with' => 'ฟิลด์ :attribute ต้องลงท้ายด้วย: :values',
|
|
'enum' => ':attribute ที่เลือกไม่ถูกต้อง',
|
|
'exists' => ':attribute ที่เลือกไม่ถูกต้อง',
|
|
'extensions' => 'ฟิลด์ :attribute ต้องมีนามสกุลใดนามสกุลหนึ่งต่อไปนี้: :values',
|
|
'file' => 'ฟิลด์ :attribute ต้องเป็นไฟล์',
|
|
'filled' => 'ฟิลด์ :attribute ต้องมีค่า',
|
|
'gt' => [
|
|
'array' => 'ฟิลด์ :attribute ต้องมีมากกว่า :value รายการ',
|
|
'file' => 'ฟิลด์ :attribute ต้องใหญ่กว่า :value กิโลไบต์',
|
|
'numeric' => 'ฟิลด์ :attribute ต้องมากกว่า :value',
|
|
'string' => 'ฟิลด์ :attribute ต้องยาวกว่า :value ตัวอักษร',
|
|
],
|
|
'gte' => [
|
|
'array' => 'ฟิลด์ :attribute ต้องมี :value รายการขึ้นไป',
|
|
'file' => 'ฟิลด์ :attribute ต้องใหญ่กว่าหรือเท่ากับ :value กิโลไบต์',
|
|
'numeric' => 'ฟิลด์ :attribute ต้องมากกว่าหรือเท่ากับ :value',
|
|
'string' => 'ฟิลด์ :attribute ต้องยาว :value ตัวอักษรขึ้นไป',
|
|
],
|
|
'hex_color' => 'ฟิลด์ :attribute ต้องเป็นสีฐานสิบหกที่ถูกต้อง',
|
|
'image' => 'ฟิลด์ :attribute ต้องเป็นรูปภาพ',
|
|
'in' => ':attribute ที่เลือกไม่ถูกต้อง',
|
|
'in_array' => 'ฟิลด์ :attribute ต้องมีอยู่ใน :other',
|
|
'in_array_keys' => 'ฟิลด์ :attribute ต้องมีคีย์อย่างน้อยหนึ่งรายการต่อไปนี้: :values',
|
|
'integer' => 'ฟิลด์ :attribute ต้องเป็นจำนวนเต็ม',
|
|
'ip' => 'ฟิลด์ :attribute ต้องเป็นที่อยู่ IP ที่ถูกต้อง',
|
|
'ipv4' => 'ฟิลด์ :attribute ต้องเป็นที่อยู่ IPv4 ที่ถูกต้อง',
|
|
'ipv6' => 'ฟิลด์ :attribute ต้องเป็นที่อยู่ IPv6 ที่ถูกต้อง',
|
|
'json' => 'ฟิลด์ :attribute ต้องเป็นสตริง JSON ที่ถูกต้อง',
|
|
'list' => 'ฟิลด์ :attribute ต้องเป็นรายการ',
|
|
'lowercase' => 'ฟิลด์ :attribute ต้องเป็นตัวพิมพ์เล็ก',
|
|
'lt' => [
|
|
'array' => 'ฟิลด์ :attribute ต้องมีน้อยกว่า :value รายการ',
|
|
'file' => 'ฟิลด์ :attribute ต้องเล็กกว่า :value กิโลไบต์',
|
|
'numeric' => 'ฟิลด์ :attribute ต้องน้อยกว่า :value',
|
|
'string' => 'ฟิลด์ :attribute ต้องสั้นกว่า :value ตัวอักษร',
|
|
],
|
|
'lte' => [
|
|
'array' => 'ฟิลด์ :attribute ต้องไม่เกิน :value รายการ',
|
|
'file' => 'ฟิลด์ :attribute ต้องเล็กกว่าหรือเท่ากับ :value กิโลไบต์',
|
|
'numeric' => 'ฟิลด์ :attribute ต้องน้อยกว่าหรือเท่ากับ :value',
|
|
'string' => 'ฟิลด์ :attribute ต้องไม่เกิน :value ตัวอักษร',
|
|
],
|
|
'mac_address' => 'ฟิลด์ :attribute ต้องเป็นที่อยู่ MAC ที่ถูกต้อง',
|
|
'max' => [
|
|
'array' => 'ฟิลด์ :attribute ต้องไม่เกิน :max รายการ',
|
|
'file' => 'ฟิลด์ :attribute ต้องไม่เกิน :max กิโลไบต์',
|
|
'numeric' => 'ฟิลด์ :attribute ต้องไม่เกิน :max',
|
|
'string' => 'ฟิลด์ :attribute ต้องไม่เกิน :max ตัวอักษร',
|
|
],
|
|
'max_digits' => 'ฟิลด์ :attribute ต้องไม่เกิน :max หลัก',
|
|
'mimes' => 'ฟิลด์ :attribute ต้องเป็นไฟล์ประเภท: :values',
|
|
'mimetypes' => 'ฟิลด์ :attribute ต้องเป็นไฟล์ประเภท: :values',
|
|
'min' => [
|
|
'array' => 'ฟิลด์ :attribute ต้องมีอย่างน้อย :min รายการ',
|
|
'file' => 'ฟิลด์ :attribute ต้องมีอย่างน้อย :min กิโลไบต์',
|
|
'numeric' => 'ฟิลด์ :attribute ต้องมีอย่างน้อย :min',
|
|
'string' => 'ฟิลด์ :attribute ต้องมีอย่างน้อย :min ตัวอักษร',
|
|
],
|
|
'min_digits' => 'ฟิลด์ :attribute ต้องมีอย่างน้อย :min หลัก',
|
|
'missing' => 'ฟิลด์ :attribute ต้องไม่มี',
|
|
'missing_if' => 'ฟิลด์ :attribute ต้องไม่มีเมื่อ :other เป็น :value',
|
|
'missing_unless' => 'ฟิลด์ :attribute ต้องไม่มีเว้นแต่ :other เป็น :value',
|
|
'missing_with' => 'ฟิลด์ :attribute ต้องไม่มีเมื่อ :values มีอยู่',
|
|
'missing_with_all' => 'ฟิลด์ :attribute ต้องไม่มีเมื่อ :values มีอยู่',
|
|
'multiple_of' => 'ฟิลด์ :attribute ต้องเป็นพหุคูณของ :value',
|
|
'not_in' => ':attribute ที่เลือกไม่ถูกต้อง',
|
|
'not_regex' => 'รูปแบบฟิลด์ :attribute ไม่ถูกต้อง',
|
|
'numeric' => 'ฟิลด์ :attribute ต้องเป็นตัวเลข',
|
|
'password' => [
|
|
'letters' => 'ฟิลด์ :attribute ต้องมีอย่างน้อยหนึ่งตัวอักษร',
|
|
'mixed' => 'ฟิลด์ :attribute ต้องมีอย่างน้อยหนึ่งตัวพิมพ์ใหญ่และหนึ่งตัวพิมพ์เล็ก',
|
|
'numbers' => 'ฟิลด์ :attribute ต้องมีอย่างน้อยหนึ่งตัวเลข',
|
|
'symbols' => 'ฟิลด์ :attribute ต้องมีอย่างน้อยหนึ่งสัญลักษณ์',
|
|
'uncompromised' => ':attribute ที่ให้มามีการปรากฏในการรั่วไหลของข้อมูล กรุณาเลือก :attribute อื่น',
|
|
],
|
|
'present' => 'ฟิลด์ :attribute ต้องมีอยู่',
|
|
'present_if' => 'ฟิลด์ :attribute ต้องมีอยู่เมื่อ :other เป็น :value',
|
|
'present_unless' => 'ฟิลด์ :attribute ต้องมีอยู่เว้นแต่ :other เป็น :value',
|
|
'present_with' => 'ฟิลด์ :attribute ต้องมีอยู่เมื่อ :values มีอยู่',
|
|
'present_with_all' => 'ฟิลด์ :attribute ต้องมีอยู่เมื่อ :values มีอยู่',
|
|
'prohibited' => 'ฟิลด์ :attribute ถูกห้าม',
|
|
'prohibited_if' => 'ฟิลด์ :attribute ถูกห้ามเมื่อ :other เป็น :value',
|
|
'prohibited_if_accepted' => 'ฟิลด์ :attribute ถูกห้ามเมื่อ :other ถูกยอมรับ',
|
|
'prohibited_if_declined' => 'ฟิลด์ :attribute ถูกห้ามเมื่อ :other ถูกปฏิเสธ',
|
|
'prohibited_unless' => 'ฟิลด์ :attribute ถูกห้ามเว้นแต่ :other อยู่ใน :values',
|
|
'prohibits' => 'ฟิลด์ :attribute ห้าม :other มีอยู่',
|
|
'regex' => 'รูปแบบฟิลด์ :attribute ไม่ถูกต้อง',
|
|
'required' => 'ฟิลด์ :attribute จำเป็นต้องมี',
|
|
'required_array_keys' => 'ฟิลด์ :attribute ต้องมีรายการสำหรับ: :values',
|
|
'required_if' => 'ฟิลด์ :attribute จำเป็นต้องมีเมื่อ :other เป็น :value',
|
|
'required_if_accepted' => 'ฟิลด์ :attribute จำเป็นต้องมีเมื่อ :other ถูกยอมรับ',
|
|
'required_if_declined' => 'ฟิลด์ :attribute จำเป็นต้องมีเมื่อ :other ถูกปฏิเสธ',
|
|
'required_unless' => 'ฟิลด์ :attribute จำเป็นต้องมีเว้นแต่ :other อยู่ใน :values',
|
|
'required_with' => 'ฟิลด์ :attribute จำเป็นต้องมีเมื่อ :values มีอยู่',
|
|
'required_with_all' => 'ฟิลด์ :attribute จำเป็นต้องมีเมื่อ :values มีอยู่',
|
|
'required_without' => 'ฟิลด์ :attribute จำเป็นต้องมีเมื่อ :values ไม่มีอยู่',
|
|
'required_without_all' => 'ฟิลด์ :attribute จำเป็นต้องมีเมื่อไม่มี :values',
|
|
'same' => 'ฟิลด์ :attribute และ :other ต้องตรงกัน',
|
|
'size' => [
|
|
'array' => 'ฟิลด์ :attribute ต้องมี :size รายการ',
|
|
'file' => 'ฟิลด์ :attribute ต้องมีขนาด :size กิโลไบต์',
|
|
'numeric' => 'ฟิลด์ :attribute ต้องเป็น :size',
|
|
'string' => 'ฟิลด์ :attribute ต้องมีความยาว :size ตัวอักษร',
|
|
],
|
|
'starts_with' => 'ฟิลด์ :attribute ต้องขึ้นต้นด้วย: :values',
|
|
'string' => 'ฟิลด์ :attribute ต้องเป็นสตริง',
|
|
'timezone' => 'ฟิลด์ :attribute ต้องเป็นเขตเวลาที่ถูกต้อง',
|
|
'unique' => ':attribute ถูกใช้ไปแล้ว',
|
|
'uploaded' => 'การอัปโหลด :attribute ล้มเหลว',
|
|
'uppercase' => 'ฟิลด์ :attribute ต้องเป็นตัวพิมพ์ใหญ่',
|
|
'url' => 'ฟิลด์ :attribute ต้องเป็น URL ที่ถูกต้อง',
|
|
'ulid' => 'ฟิลด์ :attribute ต้องเป็น ULID ที่ถูกต้อง',
|
|
'uuid' => 'ฟิลด์ :attribute ต้องเป็น UUID ที่ถูกต้อง',
|
|
|
|
'custom' => [
|
|
'attribute-name' => [
|
|
'rule-name' => 'custom-message',
|
|
],
|
|
],
|
|
|
|
'attributes' => [],
|
|
];
|