<?php
-
+/**
+ * Validation 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.
+ */
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.
- |
- */
-
+ // Standard laravel validation lines
'accepted' => ':attribute 需要被同意。',
'active_url' => ':attribute 並不是一個有效的網址',
'after' => ':attribute 必須是在 :date 後的日期。',
'digits' => ':attribute 必須為:digits位數。',
'digits_between' => ':attribute 必須為:min到:max位數。',
'email' => ':attribute 必須是有效的電子郵件位址。',
+ 'ends_with' => ':attribute必須以下列之一結尾::values',
'filled' => ':attribute 字段是必需的。',
+ 'gt' => [
+ 'numeric' => ':attribute必須大於:value。',
+ 'file' => ':attribute必須大於:value千字節。',
+ 'string' => ':attribute必須多於:value個字符。',
+ 'array' => ':attribute必須包含比:value多的項目。',
+ ],
+ 'gte' => [
+ 'numeric' => 'The :attribute必須大於或等於:value。',
+ 'file' => 'The :attribute必須大於或等於:value千字節。',
+ 'string' => 'The :attribute必須多於或等於:value個字符。',
+ 'array' => ':attribute必須具有:value或更多項。',
+ ],
'exists' => '選中的 :attribute 無效。',
'image' => ':attribute 必須是一個圖片。',
+ 'image_extension' => 'The :attribute必須具有有效且受支持的圖像擴展名.',
'in' => '選中的 :attribute 無效。',
'integer' => ':attribute 必須是一個整數。',
'ip' => ':attribute 必須是一個有效的IP位址。',
+ 'ipv4' => 'The :attribute必須是有效的IPv4地址。',
+ 'ipv6' => 'The :attribute必須是有效的IPv6地址。',
+ 'json' => 'The :attribute必須是有效的JSON字符串。',
+ 'lt' => [
+ 'numeric' => ':attribute必須小於:value。',
+ 'file' => 'The :attribute必須小於:value千字節。',
+ 'string' => ':attribute必須少於:value個字符。',
+ 'array' => ':attribute必須少於:value個項目。',
+ ],
+ 'lte' => [
+ 'numeric' => ':attribute必須小於或等於:value。',
+ 'file' => ':attribute必須小於或等於:value KB。',
+ 'string' => ':attribute必須少於或等於:value個字符。',
+ 'array' => ':attribute不得多過:value個項目。',
+ ],
'max' => [
'numeric' => ':attribute 不能超過:max。',
'file' => ':attribute 不能超過:max KB。',
'mimes' => ':attribute 必須是 :values 類型的檔案。',
'min' => [
'numeric' => ':attribute 至少為:min。',
- 'file' => ':attribute 至少為:min KB。',
+ 'file' => ':attribute 必須至少為:min KB。',
'string' => ':attribute 至少為:min個字元。',
'array' => ':attribute 至少有:min項。',
],
+ 'no_double_extension' => 'The :attribute必須僅具有一個文件擴展名。',
'not_in' => '選中的 :attribute 無效。',
+ 'not_regex' => 'The :attribute格式無效。',
'numeric' => ':attribute 必須是一個數。',
'regex' => ':attribute 格式無效。',
'required' => ':attribute 字段是必需的。',
'timezone' => ':attribute 必須是有效的區域。',
'unique' => ':attribute 已經被使用。',
'url' => ':attribute 格式無效。',
+ 'uploaded' => '無法上傳文件, 服務器可能不接受此大小的文件。',
- /*
- |--------------------------------------------------------------------------
- | 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 validation lines
'custom' => [
'password-confirm' => [
'required_with' => '需要確認密碼',
],
],
- /*
- |--------------------------------------------------------------------------
- | Custom Validation Attributes
- |--------------------------------------------------------------------------
- |
- | The following language lines are used to swap attribute place-holders
- | with something more reader friendly such as E-Mail Address instead
- | of "email". This simply helps us make messages a little cleaner.
- |
- */
-
+ // Custom validation attributes
'attributes' => [],
-
];