| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162 |
- <?php
- return [
- /*
- |--------------------------------------------------------------------------
- | Validation Language Lines
- |--------------------------------------------------------------------------
- |
- | The following language lines contain the default error messages used by
- | the validator class. Some of these rules have multiple versions such
- | as the size rules. Feel free to tweak each of these messages here.
- |
- */
- 'accepted' => ':attribute 必須被接受。',
- 'accepted_if' => '當 :other 為 :value 時,:attribute 必須被接受。',
- 'active_url' => ':attribute 不是有效的網址。',
- 'after' => ':attribute 必須是 :date 之後的日期。',
- 'after_or_equal' => ':attribute 必須是 :date 之後或相同的日期。',
- 'alpha' => ':attribute 只能包含字母。',
- 'alpha_dash' => ':attribute 只能包含字母、數字、破折號及底線。',
- 'alpha_num' => ':attribute 只能包含字母和數字。',
- 'array' => ':attribute 必須是陣列。',
- 'before' => ':attribute 必須是 :date 之前的日期。',
- 'before_or_equal' => ':attribute 必須是 :date 之前或相同的日期。',
- 'between' => [
- 'numeric' => ':attribute 必須介於 :min 和 :max 之間。',
- 'file' => ':attribute 必須介於 :min 和 :max 千位元組之間。',
- 'string' => ':attribute 必須介於 :min 和 :max 個字元之間。',
- 'array' => ':attribute 必須有 :min 到 :max 個項目。',
- ],
- 'boolean' => ':attribute 欄位必須為 true 或 false。',
- 'confirmed' => ':attribute 確認不符合。',
- 'current_password' => '密碼不正確。',
- 'date' => ':attribute 不是有效的日期。',
- 'date_equals' => ':attribute 必須是等於 :date 的日期。',
- 'date_format' => ':attribute 不符合格式 :format。',
- 'declined' => ':attribute 必須被拒絕。',
- 'declined_if' => '當 :other 為 :value 時,:attribute 必須被拒絕。',
- 'different' => ':attribute 和 :other 必須不同。',
- 'digits' => ':attribute 必須是 :digits 位數字。',
- 'digits_between' => ':attribute 必須介於 :min 到 :max 位數字之間。',
- 'dimensions' => ':attribute 的圖片尺寸無效。',
- 'distinct' => ':attribute 欄位有重複值。',
- 'email' => ':attribute 必須是有效的電子郵件地址。',
- 'ends_with' => ':attribute 必須以下列其中之一結尾::values。',
- 'enum' => '所選的 :attribute 無效。',
- 'exists' => '所選的 :attribute 無效。',
- 'file' => ':attribute 必須是檔案。',
- 'filled' => ':attribute 欄位必須有值。',
- 'gt' => [
- 'numeric' => ':attribute 必須大於 :value。',
- 'file' => ':attribute 必須大於 :value 千位元組。',
- 'string' => ':attribute 必須多於 :value 個字元。',
- 'array' => ':attribute 必須多於 :value 個項目。',
- ],
- 'gte' => [
- 'numeric' => ':attribute 必須大於或等於 :value。',
- 'file' => ':attribute 必須大於或等於 :value 千位元組。',
- 'string' => ':attribute 必須多於或等於 :value 個字元。',
- 'array' => ':attribute 必須有 :value 個或更多項目。',
- ],
- 'image' => ':attribute 必須是圖片。',
- 'in' => '所選的 :attribute 無效。',
- 'in_array' => ':attribute 欄位不存在於 :other 中。',
- 'integer' => ':attribute 必須是整數。',
- 'ip' => ':attribute 必須是有效的 IP 地址。',
- 'ipv4' => ':attribute 必須是有效的 IPv4 地址。',
- 'ipv6' => ':attribute 必須是有效的 IPv6 地址。',
- 'mac_address' => ':attribute 必須是有效的 MAC 地址。',
- 'json' => ':attribute 必須是有效的 JSON 字串。',
- 'lt' => [
- 'numeric' => ':attribute 必須小於 :value。',
- 'file' => ':attribute 必須小於 :value 千位元組。',
- 'string' => ':attribute 必須少於 :value 個字元。',
- 'array' => ':attribute 必須少於 :value 個項目。',
- ],
- 'lte' => [
- 'numeric' => ':attribute 必須小於或等於 :value。',
- 'file' => ':attribute 必須小於或等於 :value 千位元組。',
- 'string' => ':attribute 必須少於或等於 :value 個字元。',
- 'array' => ':attribute 不能超過 :value 個項目。',
- ],
- 'max' => [
- 'numeric' => ':attribute 不能大於 :max。',
- 'file' => ':attribute 不能大於 :max 千位元組。',
- 'string' => ':attribute 不能超過 :max 個字元。',
- 'array' => ':attribute 不能超過 :max 個項目。',
- ],
- 'mimes' => ':attribute 必須是以下類型的檔案::values。',
- 'mimetypes' => ':attribute 必須是以下類型的檔案::values。',
- 'min' => [
- 'numeric' => ':attribute 至少必須是 :min。',
- 'file' => ':attribute 至少必須是 :min 千位元組。',
- 'string' => ':attribute 至少必須是 :min 個字元。',
- 'array' => ':attribute 至少必須有 :min 個項目。',
- ],
- 'multiple_of' => ':attribute 必須是 :value 的倍數。',
- 'not_in' => '所選的 :attribute 無效。',
- 'not_regex' => ':attribute 格式無效。',
- 'numeric' => ':attribute 必須是數字。',
- 'password' => '密碼不正確。',
- 'present' => ':attribute 欄位必須存在。',
- 'prohibited' => ':attribute 欄位是被禁止的。',
- 'prohibited_if' => '當 :other 為 :value 時,:attribute 欄位是被禁止的。',
- 'prohibited_unless' => '除非 :other 在 :values 中,否則 :attribute 欄位是被禁止的。',
- 'prohibits' => ':attribute 欄位禁止 :other 存在。',
- 'regex' => ':attribute 格式無效。',
- 'required' => ':attribute 欄位為必填。',
- 'required_if' => '當 :other 為 :value 時,:attribute 欄位為必填。',
- 'required_unless' => '除非 :other 在 :values 中,否則 :attribute 欄位為必填。',
- 'required_with' => '當 :values 存在時,:attribute 欄位為必填。',
- 'required_with_all' => '當 :values 都存在時,:attribute 欄位為必填。',
- 'required_without' => '當 :values 不存在時,:attribute 欄位為必填。',
- 'required_without_all' => '當 :values 都不存在時,:attribute 欄位為必填。',
- 'same' => ':attribute 和 :other 必須相符。',
- 'size' => [
- 'numeric' => ':attribute 必須是 :size。',
- 'file' => ':attribute 必須是 :size 千位元組。',
- 'string' => ':attribute 必須是 :size 個字元。',
- 'array' => ':attribute 必須包含 :size 個項目。',
- ],
- 'starts_with' => ':attribute 必須以下列其中之一開頭::values。',
- 'string' => ':attribute 必須是字串。',
- 'timezone' => ':attribute 必須是有效的時區。',
- 'unique' => ':attribute 已被使用。',
- 'uploaded' => ':attribute 上傳失敗。',
- 'url' => ':attribute 必須是有效的網址。',
- 'uuid' => ':attribute 必須是有效的 UUID。',
- /*
- |--------------------------------------------------------------------------
- | Custom Validation Language Lines
- |--------------------------------------------------------------------------
- |
- | Here you may specify custom validation messages for attributes using the
- | convention "attribute.rule" to name the lines. This makes it quick to
- | specify a specific custom language line for a given attribute rule.
- |
- */
- 'custom' => [
- 'attribute-name' => [
- 'rule-name' => 'custom-message',
- ],
- ],
- /*
- |--------------------------------------------------------------------------
- | Custom Validation Attributes
- |--------------------------------------------------------------------------
- |
- | The following language lines are used to swap our attribute placeholder
- | with something more reader friendly such as "E-Mail Address" instead
- | of "email". This simply helps us make our message more expressive.
- |
- */
- 'attributes' => [],
- ];
|