|
| 1 | +<?php |
| 2 | + |
| 3 | +return [ |
| 4 | + |
| 5 | + /* |
| 6 | + |-------------------------------------------------------------------------- |
| 7 | + | Validation Language Lines |
| 8 | + |-------------------------------------------------------------------------- |
| 9 | + | |
| 10 | + | The following language lines contain the default error messages used by |
| 11 | + | the validator class. Some of these rules have multiple versions such |
| 12 | + | as the size rules. Feel free to tweak each of these messages here. |
| 13 | + | |
| 14 | + */ |
| 15 | + |
| 16 | + 'accepted' => 'The :attribute must be accepted.', |
| 17 | + 'accepted_if' => 'The :attribute must be accepted when :other is :value.', |
| 18 | + 'active_url' => 'The :attribute is not a valid URL.', |
| 19 | + 'after' => 'The :attribute must be a date after :date.', |
| 20 | + 'after_or_equal' => 'The :attribute must be a date after or equal to :date.', |
| 21 | + 'alpha' => 'The :attribute must only contain letters.', |
| 22 | + 'alpha_dash' => 'The :attribute must only contain letters, numbers, dashes and underscores.', |
| 23 | + 'alpha_num' => 'The :attribute must only contain letters and numbers.', |
| 24 | + 'array' => 'The :attribute must be an array.', |
| 25 | + 'ascii' => 'The :attribute must only contain single-byte alphanumeric characters and symbols.', |
| 26 | + 'before' => 'The :attribute must be a date before :date.', |
| 27 | + 'before_or_equal' => 'The :attribute must be a date before or equal to :date.', |
| 28 | + 'between' => [ |
| 29 | + 'array' => 'The :attribute must have between :min and :max items.', |
| 30 | + 'file' => 'The :attribute must be between :min and :max kilobytes.', |
| 31 | + 'numeric' => 'The :attribute must be between :min and :max.', |
| 32 | + 'string' => 'The :attribute must be between :min and :max characters.', |
| 33 | + ], |
| 34 | + 'boolean' => 'The :attribute field must be true or false.', |
| 35 | + 'confirmed' => 'The :attribute confirmation does not match.', |
| 36 | + 'current_password' => 'The password is incorrect.', |
| 37 | + 'date' => 'The :attribute is not a valid date.', |
| 38 | + 'date_equals' => 'The :attribute must be a date equal to :date.', |
| 39 | + 'date_format' => 'The :attribute does not match the format :format.', |
| 40 | + 'decimal' => 'The :attribute must have :decimal decimal places.', |
| 41 | + 'declined' => 'The :attribute must be declined.', |
| 42 | + 'declined_if' => 'The :attribute must be declined when :other is :value.', |
| 43 | + 'different' => 'The :attribute and :other must be different.', |
| 44 | + 'digits' => 'The :attribute must be :digits digits.', |
| 45 | + 'digits_between' => 'The :attribute must be between :min and :max digits.', |
| 46 | + 'dimensions' => 'The :attribute has invalid image dimensions.', |
| 47 | + 'distinct' => 'The :attribute field has a duplicate value.', |
| 48 | + 'doesnt_end_with' => 'The :attribute may not end with one of the following: :values.', |
| 49 | + 'doesnt_start_with' => 'The :attribute may not start with one of the following: :values.', |
| 50 | + 'email' => 'The :attribute must be a valid email address.', |
| 51 | + 'ends_with' => 'The :attribute must end with one of the following: :values.', |
| 52 | + 'enum' => 'The selected :attribute is invalid.', |
| 53 | + 'exists' => 'The selected :attribute is invalid.', |
| 54 | + 'file' => 'The :attribute must be a file.', |
| 55 | + 'filled' => 'The :attribute field must have a value.', |
| 56 | + 'gt' => [ |
| 57 | + 'array' => 'The :attribute must have more than :value items.', |
| 58 | + 'file' => 'The :attribute must be greater than :value kilobytes.', |
| 59 | + 'numeric' => 'The :attribute must be greater than :value.', |
| 60 | + 'string' => 'The :attribute must be greater than :value characters.', |
| 61 | + ], |
| 62 | + 'gte' => [ |
| 63 | + 'array' => 'The :attribute must have :value items or more.', |
| 64 | + 'file' => 'The :attribute must be greater than or equal to :value kilobytes.', |
| 65 | + 'numeric' => 'The :attribute must be greater than or equal to :value.', |
| 66 | + 'string' => 'The :attribute must be greater than or equal to :value characters.', |
| 67 | + ], |
| 68 | + 'image' => 'The :attribute must be an image.', |
| 69 | + 'in' => 'The selected :attribute is invalid.', |
| 70 | + 'in_array' => 'The :attribute field does not exist in :other.', |
| 71 | + 'integer' => 'The :attribute must be an integer.', |
| 72 | + 'ip' => 'The :attribute must be a valid IP address.', |
| 73 | + 'ipv4' => 'The :attribute must be a valid IPv4 address.', |
| 74 | + 'ipv6' => 'The :attribute must be a valid IPv6 address.', |
| 75 | + 'json' => 'The :attribute must be a valid JSON string.', |
| 76 | + 'lowercase' => 'The :attribute must be lowercase.', |
| 77 | + 'lt' => [ |
| 78 | + 'array' => 'The :attribute must have less than :value items.', |
| 79 | + 'file' => 'The :attribute must be less than :value kilobytes.', |
| 80 | + 'numeric' => 'The :attribute must be less than :value.', |
| 81 | + 'string' => 'The :attribute must be less than :value characters.', |
| 82 | + ], |
| 83 | + 'lte' => [ |
| 84 | + 'array' => 'The :attribute must not have more than :value items.', |
| 85 | + 'file' => 'The :attribute must be less than or equal to :value kilobytes.', |
| 86 | + 'numeric' => 'The :attribute must be less than or equal to :value.', |
| 87 | + 'string' => 'The :attribute must be less than or equal to :value characters.', |
| 88 | + ], |
| 89 | + 'mac_address' => 'The :attribute must be a valid MAC address.', |
| 90 | + 'max' => [ |
| 91 | + 'array' => 'The :attribute must not have more than :max items.', |
| 92 | + 'file' => 'The :attribute must not be greater than :max kilobytes.', |
| 93 | + 'numeric' => 'The :attribute must not be greater than :max.', |
| 94 | + 'string' => 'The :attribute must not be greater than :max characters.', |
| 95 | + ], |
| 96 | + 'max_digits' => 'The :attribute must not have more than :max digits.', |
| 97 | + 'mimes' => 'The :attribute must be a file of type: :values.', |
| 98 | + 'mimetypes' => 'The :attribute must be a file of type: :values.', |
| 99 | + 'min' => [ |
| 100 | + 'array' => 'The :attribute must have at least :min items.', |
| 101 | + 'file' => 'The :attribute must be at least :min kilobytes.', |
| 102 | + 'numeric' => 'The :attribute must be at least :min.', |
| 103 | + 'string' => 'The :attribute must be at least :min characters.', |
| 104 | + ], |
| 105 | + 'min_digits' => 'The :attribute must have at least :min digits.', |
| 106 | + 'missing' => 'The :attribute field must be missing.', |
| 107 | + 'missing_if' => 'The :attribute field must be missing when :other is :value.', |
| 108 | + 'missing_unless' => 'The :attribute field must be missing unless :other is :value.', |
| 109 | + 'missing_with' => 'The :attribute field must be missing when :values is present.', |
| 110 | + 'missing_with_all' => 'The :attribute field must be missing when :values are present.', |
| 111 | + 'multiple_of' => 'The :attribute must be a multiple of :value.', |
| 112 | + 'not_in' => 'The selected :attribute is invalid.', |
| 113 | + 'not_regex' => 'The :attribute format is invalid.', |
| 114 | + 'numeric' => 'The :attribute must be a number.', |
| 115 | + 'password' => [ |
| 116 | + 'letters' => 'The :attribute must contain at least one letter.', |
| 117 | + 'mixed' => 'The :attribute must contain at least one uppercase and one lowercase letter.', |
| 118 | + 'numbers' => 'The :attribute must contain at least one number.', |
| 119 | + 'symbols' => 'The :attribute must contain at least one symbol.', |
| 120 | + 'uncompromised' => 'The given :attribute has appeared in a data leak. Please choose a different :attribute.', |
| 121 | + ], |
| 122 | + 'present' => 'The :attribute field must be present.', |
| 123 | + 'prohibited' => 'The :attribute field is prohibited.', |
| 124 | + 'prohibited_if' => 'The :attribute field is prohibited when :other is :value.', |
| 125 | + 'prohibited_unless' => 'The :attribute field is prohibited unless :other is in :values.', |
| 126 | + 'prohibits' => 'The :attribute field prohibits :other from being present.', |
| 127 | + 'regex' => 'The :attribute format is invalid.', |
| 128 | + 'required' => 'The :attribute field is required.', |
| 129 | + 'required_array_keys' => 'The :attribute field must contain entries for: :values.', |
| 130 | + 'required_if' => 'The :attribute field is required when :other is :value.', |
| 131 | + 'required_if_accepted' => 'The :attribute field is required when :other is accepted.', |
| 132 | + 'required_unless' => 'The :attribute field is required unless :other is in :values.', |
| 133 | + 'required_with' => 'The :attribute field is required when :values is present.', |
| 134 | + 'required_with_all' => 'The :attribute field is required when :values are present.', |
| 135 | + 'required_without' => 'The :attribute field is required when :values is not present.', |
| 136 | + 'required_without_all' => 'The :attribute field is required when none of :values are present.', |
| 137 | + 'same' => 'The :attribute and :other must match.', |
| 138 | + 'size' => [ |
| 139 | + 'array' => 'The :attribute must contain :size items.', |
| 140 | + 'file' => 'The :attribute must be :size kilobytes.', |
| 141 | + 'numeric' => 'The :attribute must be :size.', |
| 142 | + 'string' => 'The :attribute must be :size characters.', |
| 143 | + ], |
| 144 | + 'starts_with' => 'The :attribute must start with one of the following: :values.', |
| 145 | + 'string' => 'The :attribute must be a string.', |
| 146 | + 'timezone' => 'The :attribute must be a valid timezone.', |
| 147 | + 'unique' => 'The :attribute has already been taken.', |
| 148 | + 'uploaded' => 'The :attribute failed to upload.', |
| 149 | + 'uppercase' => 'The :attribute must be uppercase.', |
| 150 | + 'url' => 'The :attribute must be a valid URL.', |
| 151 | + 'ulid' => 'The :attribute must be a valid ULID.', |
| 152 | + 'uuid' => 'The :attribute must be a valid UUID.', |
| 153 | + |
| 154 | + /* |
| 155 | + |-------------------------------------------------------------------------- |
| 156 | + | Custom Validation Language Lines |
| 157 | + |-------------------------------------------------------------------------- |
| 158 | + | |
| 159 | + | Here you may specify custom validation messages for attributes using the |
| 160 | + | convention "attribute.rule" to name the lines. This makes it quick to |
| 161 | + | specify a specific custom language line for a given attribute rule. |
| 162 | + | |
| 163 | + */ |
| 164 | + |
| 165 | + 'custom' => [ |
| 166 | + 'attribute-name' => [ |
| 167 | + 'rule-name' => 'custom-message', |
| 168 | + ], |
| 169 | + ], |
| 170 | + |
| 171 | + /* |
| 172 | + |-------------------------------------------------------------------------- |
| 173 | + | Custom Validation Attributes |
| 174 | + |-------------------------------------------------------------------------- |
| 175 | + | |
| 176 | + | The following language lines are used to swap our attribute placeholder |
| 177 | + | with something more reader friendly such as "E-Mail Address" instead |
| 178 | + | of "email". This simply helps us make our message more expressive. |
| 179 | + | |
| 180 | + */ |
| 181 | + |
| 182 | + 'attributes' => [], |
| 183 | + |
| 184 | +]; |
0 commit comments