| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147 |
- <?php
- return [
- 'accepted' => '必須接受 :attribute。',
- 'accepted_if' => '當 :other 為 :value 時,必須接受 :attribute。',
- 'active_url' => ':attribute 不是有效的網址。',
- 'after' => ':attribute 必須是一個在 :date 之後的日期。',
- 'after_or_equal' => ':attribute 必須是一個在 :date 之後或等於 :date 的日期。',
- 'alpha' => ':attribute 只能包含字母。',
- 'alpha_dash' => ':attribute 只能包含字母、數字、破折號和底線。',
- 'alpha_num' => ':attribute 只能包含字母和數字。',
- 'array' => ':attribute 必須是一個陣列。',
- 'ascii' => ':attribute 只能包含單位元字母數字字符和符號。',
- 'before' => ':attribute 必須是一個在 :date 之前的日期。',
- 'before_or_equal' => ':attribute 必須是一個在 :date 之前或等於 :date 的日期。',
- 'between' => [
- 'array' => ':attribute 必須有介於 :min 和 :max 之間的項目。',
- 'file' => ':attribute 必須介於 :min 和 :max 千位元組之間。',
- 'numeric' => ':attribute 必須介於 :min 和 :max 之間。',
- 'string' => ':attribute 必須介於 :min 和 :max 個字符之間。',
- ],
- 'boolean' => ':attribute 欄位必須為真或假。',
- 'confirmed' => ':attribute 確認不匹配。',
- 'current_password' => '密碼不正確。',
- 'date' => ':attribute 不是有效的日期。',
- 'date_equals' => ':attribute 必須是一個等於 :date 的日期。',
- 'date_format' => ':attribute 與格式 :format 不匹配。',
- 'decimal' => ':attribute 必須有 :decimal 位小數。',
- 'declined' => ':attribute 必須被拒絕。',
- 'declined_if' => '當 :other 為 :value 時,:attribute 必須被拒絕。',
- 'different' => ':attribute 和 :other 必須不同。',
- 'digits' => ':attribute 必須是 :digits 位數字。',
- 'digits_between' => ':attribute 必須介於 :min 和 :max 位數字之間。',
- 'dimensions' => ':attribute 的圖像尺寸無效。',
- 'distinct' => ':attribute 欄位有重複的值。',
- 'doesnt_end_with' => ':attribute 不能以以下之一結尾::values。',
- 'doesnt_start_with' => ':attribute 不能以以下之一開始::values。',
- 'email' => ':attribute 必須是一個有效的電子郵件地址。',
- 'ends_with' => ':attribute 必須以以下之一結尾::values。',
- 'enum' => '選擇的 :attribute 無效。',
- 'exists' => '選擇的 :attribute 無效。',
- '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 個字符。',
- ],
- 'image' => ':attribute 必須是一張圖片。',
- 'in' => '選擇的 :attribute 無效。',
- 'in_array' => ':attribute 欄位在 :other 中不存在。',
- 'integer' => ':attribute 必須是一個整數。',
- 'ip' => ':attribute 必須是一個有效的 IP 地址。',
- 'ipv4' => ':attribute 必須是一個有效的 IPv4 地址。',
- 'ipv6' => ':attribute 必須是一個有效的 IPv6 地址。',
- 'json' => ':attribute 必須是一個有效的 JSON 字串。',
- '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' => '當 :other 為 :value 時,:attribute 欄位必須缺失。',
- 'missing_unless' => '除非 :other 為 :value,否則 :attribute 欄位必須缺失。',
- 'missing_with' => '當 :values 存在時,:attribute 欄位必須缺失。',
- 'missing_with_all' => '當 :values 都存在時,:attribute 欄位必須缺失。',
- '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 欄位必須存在。',
- 'prohibited' => ':attribute 欄位是被禁止的。',
- 'prohibited_if' => '當 :other 為 :value 時,:attribute 欄位是被禁止的。',
- 'prohibited_unless' => '除非 :other 在 :values 中,否則 :attribute 欄位是被禁止的。',
- 'prohibits' => ':attribute 欄位禁止 :other 存在。',
- 'regex' => ':attribute 格式無效。',
- 'required' => ':attribute 欄位是必填的。',
- 'required_array_keys' => ':attribute 欄位必須包含以下項目::values。',
- 'required_if' => '當 :other 為 :value 時,:attribute 欄位是必填的。',
- 'required_if_accepted' => '當 :other 被接受時,: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' => [
- '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' => '自訂訊息',
- ],
- ],
- 'attributes' => [],
- ];
|