| 1 | <?php | = | 1 | <?php |
| 2 | 2 | |||
| 3 | return [ | 3 | return [ | |
| 4 | 4 | |||
| 5 | /* | 5 | /* | |
| 6 | |-------------------------------------------------------------------------- | 6 | |-------------------------------------------------------------------------- | |
| 7 | | Validation Language Lines | 7 | | Validation Language Lines | |
| 8 | |-------------------------------------------------------------------------- | 8 | |-------------------------------------------------------------------------- | |
| 9 | | | 9 | | | |
| 10 | | The following language lines contain the default error messages used by | 10 | | The following language lines contain the default error messages used by | |
| 11 | | the validator class. Some of these rules have multiple versions such | 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. | 12 | | as the size rules. Feel free to tweak each of these messages here. | |
| 13 | | | 13 | | | |
| 14 | */ | 14 | */ | |
| 15 | 15 | |||
| 16 | 'accepted' => 'The :attribute must be accepted.', | 16 | 'accepted' => 'The :attribute must be accepted.', | |
| 17 | 'active_url' => 'The :attribute is not a valid URL.', | 17 | 'active_url' => 'The :attribute is not a valid URL.', | |
| 18 | 'after' => 'The :attribute must be a date after :date.', | 18 | 'after' => 'The :attribute must be a date after :date.', | |
| 19 | 'after_or_equal' => 'The :attribute must be a date after or equal to :date.', | 19 | 'after_or_equal' => 'The :attribute must be a date after or equal to :date.', | |
| 20 | 'alpha' => 'The :attribute may only contain letters.', | 20 | 'alpha' => 'The :attribute may only contain letters.', | |
| 21 | 'alpha_dash' => 'The :attribute may only contain letters, numbers, dashes and underscores.', | 21 | 'alpha_dash' => 'The :attribute may only contain letters, numbers, dashes and underscores.', | |
| 22 | 'alpha_num' => 'The :attribute may only contain letters and numbers.', | 22 | 'alpha_num' => 'The :attribute may only contain letters and numbers.', | |
| 23 | 'array' => 'The :attribute must be an array.', | 23 | 'array' => 'The :attribute must be an array.', | |
| 24 | 'before' => 'The :attribute must be a date before :date.', | 24 | 'before' => 'The :attribute must be a date before :date.', | |
| 25 | 'before_or_equal' => 'The :attribute must be a date before or equal to :date.', | 25 | 'before_or_equal' => 'The :attribute must be a date before or equal to :date.', | |
| 26 | 'between' => [ | 26 | 'between' => [ | |
| 27 | 'numeric' => 'The :attribute must be between :min and :max.', | 27 | 'numeric' => 'The :attribute must be between :min and :max.', | |
| 28 | 'file' => 'The :attribute must be between :min and :max kilobytes.', | 28 | 'file' => 'The :attribute must be between :min and :max kilobytes.', | |
| 29 | 'string' => 'The :attribute must be between :min and :max characters.', | 29 | 'string' => 'The :attribute must be between :min and :max characters.', | |
| 30 | 'array' => 'The :attribute must have between :min and :max items.', | 30 | 'array' => 'The :attribute must have between :min and :max items.', | |
| 31 | ], | 31 | ], | |
| 32 | 'boolean' => 'The :attribute field must be true or false.', | 32 | 'boolean' => 'The :attribute field must be true or false.', | |
| 33 | 'confirmed' => 'The :attribute confirmation does not match.', | 33 | 'confirmed' => 'The :attribute confirmation does not match.', | |
| 34 | 'date' => 'The :attribute is not a valid date.', | 34 | 'date' => 'The :attribute is not a valid date.', | |
| 35 | 'date_equals' => 'The :attribute must be a date equal to :date.', | 35 | 'date_equals' => 'The :attribute must be a date equal to :date.', | |
| 36 | 'date_format' => 'The :attribute does not match the format :format.', | 36 | 'date_format' => 'The :attribute does not match the format :format.', | |
| 37 | 'different' => 'The :attribute and :other must be different.', | 37 | 'different' => 'The :attribute and :other must be different.', | |
| 38 | 'digits' => 'The :attribute must be :digits digits.', | 38 | 'digits' => 'The :attribute must be :digits digits.', | |
| 39 | 'digits_between' => 'The :attribute must be between :min and :max digits.', | 39 | 'digits_between' => 'The :attribute must be between :min and :max digits.', | |
| 40 | 'dimensions' => 'The :attribute has invalid image dimensions.', | 40 | 'dimensions' => 'The :attribute has invalid image dimensions.', | |
| 41 | 'distinct' => 'The :attribute field has a duplicate value.', | 41 | 'distinct' => 'The :attribute field has a duplicate value.', | |
| 42 | 'email' => 'The :attribute must be a valid email address.', | 42 | 'email' => 'The :attribute must be a valid email address.', | |
| 43 | 'exists' => 'The selected :attribute is invalid.', | 43 | 'exists' => 'The selected :attribute is invalid.', | |
| 44 | 'file' => 'The :attribute must be a file.', | 44 | 'file' => 'The :attribute must be a file.', | |
| 45 | 'filled' => 'The :attribute field must have a value.', | 45 | 'filled' => 'The :attribute field must have a value.', | |
| 46 | 'gt' => [ | 46 | 'gt' => [ | |
| 47 | 'numeric' => 'The :attribute must be greater than :value.', | 47 | 'numeric' => 'The :attribute must be greater than :value.', | |
| 48 | 'file' => 'The :attribute must be greater than :value kilobytes.', | 48 | 'file' => 'The :attribute must be greater than :value kilobytes.', | |
| 49 | 'string' => 'The :attribute must be greater than :value characters.', | 49 | 'string' => 'The :attribute must be greater than :value characters.', | |
| 50 | 'array' => 'The :attribute must have more than :value items.', | 50 | 'array' => 'The :attribute must have more than :value items.', | |
| 51 | ], | 51 | ], | |
| 52 | 'gte' => [ | 52 | 'gte' => [ | |
| 53 | 'numeric' => 'The :attribute must be greater than or equal :value.', | 53 | 'numeric' => 'The :attribute must be greater than or equal :value.', | |
| 54 | 'file' => 'The :attribute must be greater than or equal :value kilobytes.', | 54 | 'file' => 'The :attribute must be greater than or equal :value kilobytes.', | |
| 55 | 'string' => 'The :attribute must be greater than or equal :value characters.', | 55 | 'string' => 'The :attribute must be greater than or equal :value characters.', | |
| 56 | 'array' => 'The :attribute must have :value items or more.', | 56 | 'array' => 'The :attribute must have :value items or more.', | |
| 57 | ], | 57 | ], | |
| 58 | 'image' => 'The :attribute must be an image.', | 58 | 'image' => 'The :attribute must be an image.', | |
| 59 | 'in' => 'The selected :attribute is invalid.', | 59 | 'in' => 'The selected :attribute is invalid.', | |
| 60 | 'in_array' => 'The :attribute field does not exist in :other.', | 60 | 'in_array' => 'The :attribute field does not exist in :other.', | |
| 61 | 'integer' => 'The :attribute must be an integer.', | 61 | 'integer' => 'The :attribute must be an integer.', | |
| 62 | 'ip' => 'The :attribute must be a valid IP address.', | 62 | 'ip' => 'The :attribute must be a valid IP address.', | |
| 63 | 'ipv4' => 'The :attribute must be a valid IPv4 address.', | 63 | 'ipv4' => 'The :attribute must be a valid IPv4 address.', | |
| 64 | 'ipv6' => 'The :attribute must be a valid IPv6 address.', | 64 | 'ipv6' => 'The :attribute must be a valid IPv6 address.', | |
| 65 | 'json' => 'The :attribute must be a valid JSON string.', | 65 | 'json' => 'The :attribute must be a valid JSON string.', | |
| 66 | 'lt' => [ | 66 | 'lt' => [ | |
| 67 | 'numeric' => 'The :attribute must be less than :value.', | 67 | 'numeric' => 'The :attribute must be less than :value.', | |
| 68 | 'file' => 'The :attribute must be less than :value kilobytes.', | 68 | 'file' => 'The :attribute must be less than :value kilobytes.', | |
| 69 | 'string' => 'The :attribute must be less than :value characters.', | 69 | 'string' => 'The :attribute must be less than :value characters.', | |
| 70 | 'array' => 'The :attribute must have less than :value items.', | 70 | 'array' => 'The :attribute must have less than :value items.', | |
| 71 | ], | 71 | ], | |
| 72 | 'lte' => [ | 72 | 'lte' => [ | |
| 73 | 'numeric' => 'The :attribute must be less than or equal :value.', | 73 | 'numeric' => 'The :attribute must be less than or equal :value.', | |
| 74 | 'file' => 'The :attribute must be less than or equal :value kilobytes.', | 74 | 'file' => 'The :attribute must be less than or equal :value kilobytes.', | |
| 75 | 'string' => 'The :attribute must be less than or equal :value characters.', | 75 | 'string' => 'The :attribute must be less than or equal :value characters.', | |
| 76 | 'array' => 'The :attribute must not have more than :value items.', | 76 | 'array' => 'The :attribute must not have more than :value items.', | |
| 77 | ], | 77 | ], | |
| 78 | 'max' => [ | 78 | 'max' => [ | |
| 79 | 'numeric' => 'The :attribute may not be greater than :max.', | 79 | 'numeric' => 'The :attribute may not be greater than :max.', | |
| 80 | 'file' => 'The :attribute may not be greater than :max kilobytes.', | 80 | 'file' => 'The :attribute may not be greater than :max kilobytes.', | |
| 81 | 'string' => 'The :attribute may not be greater than :max characters.', | 81 | 'string' => 'The :attribute may not be greater than :max characters.', | |
| 82 | 'array' => 'The :attribute may not have more than :max items.', | 82 | 'array' => 'The :attribute may not have more than :max items.', | |
| 83 | ], | 83 | ], | |
| 84 | 'mimes' => 'The :attribute must be a file of type: :values.', | 84 | 'mimes' => 'The :attribute must be a file of type: :values.', | |
| 85 | 'mimetypes' => 'The :attribute must be a file of type: :values.', | 85 | 'mimetypes' => 'The :attribute must be a file of type: :values.', | |
| 86 | 'min' => [ | 86 | 'min' => [ | |
| 87 | 'numeric' => 'The :attribute must be at least :min.', | 87 | 'numeric' => 'The :attribute must be at least :min.', | |
| 88 | 'file' => 'The :attribute must be at least :min kilobytes.', | 88 | 'file' => 'The :attribute must be at least :min kilobytes.', | |
| 89 | 'string' => 'The :attribute must be at least :min characters.', | 89 | 'string' => 'The :attribute must be at least :min characters.', | |
| 90 | 'array' => 'The :attribute must have at least :min items.', | 90 | 'array' => 'The :attribute must have at least :min items.', | |
| 91 | ], | 91 | ], | |
| 92 | 'not_in' => 'The selected :attribute is invalid.', | 92 | 'not_in' => 'The selected :attribute is invalid.', | |
| 93 | 'not_regex' => 'The :attribute format is invalid.', | 93 | 'not_regex' => 'The :attribute format is invalid.', | |
| 94 | 'numeric' => 'The :attribute must be a number.', | 94 | 'numeric' => 'The :attribute must be a number.', | |
| 95 | 'present' => 'The :attribute field must be present.', | 95 | 'present' => 'The :attribute field must be present.', | |
| 96 | 'regex' => 'The :attribute format is invalid.', | 96 | 'regex' => 'The :attribute format is invalid.', | |
| 97 | 'required' => 'The :attribute field is required.', | 97 | 'required' => 'The :attribute field is required.', | |
| 98 | 'required_if' => 'The :attribute field is required when :other is :value.', | 98 | 'required_if' => 'The :attribute field is required when :other is :value.', | |
| 99 | 'required_unless' => 'The :attribute field is required unless :other is in :values.', | 99 | 'required_unless' => 'The :attribute field is required unless :other is in :values.', | |
| 100 | 'required_with' => 'The :attribute field is required when :values is present.', | 100 | 'required_with' => 'The :attribute field is required when :values is present.', | |
| 101 | 'required_with_all' => 'The :attribute field is required when :values are present.', | 101 | 'required_with_all' => 'The :attribute field is required when :values are present.', | |
| 102 | 'required_without' => 'The :attribute field is required when :values is not present.', | 102 | 'required_without' => 'The :attribute field is required when :values is not present.', | |
| 103 | 'required_without_all' => 'The :attribute field is required when none of :values are present.', | 103 | 'required_without_all' => 'The :attribute field is required when none of :values are present.', | |
| 104 | 'same' => 'The :attribute and :other must match.', | 104 | 'same' => 'The :attribute and :other must match.', | |
| 105 | 'size' => [ | 105 | 'size' => [ | |
| 106 | 'numeric' => 'The :attribute must be :size.', | 106 | 'numeric' => 'The :attribute must be :size.', | |
| 107 | 'file' => 'The :attribute must be :size kilobytes.', | 107 | 'file' => 'The :attribute must be :size kilobytes.', | |
| 108 | 'string' => 'The :attribute must be :size characters.', | 108 | 'string' => 'The :attribute must be :size characters.', | |
| 109 | 'array' => 'The :attribute must contain :size items.', | 109 | 'array' => 'The :attribute must contain :size items.', | |
| 110 | ], | 110 | ], | |
| -+ | 111 | 'starts_with' => 'The :attribute must start with one of the following: :values', | ||
| 111 | 'string' => 'The :attribute must be a string.', | = | 112 | 'string' => 'The :attribute must be a string.', |
| 112 | 'timezone' => 'The :attribute must be a valid zone.', | 113 | 'timezone' => 'The :attribute must be a valid zone.', | |
| 113 | 'unique' => 'The :attribute has already been taken.', | 114 | 'unique' => 'The :attribute has already been taken.', | |
| 114 | 'uploaded' => 'The :attribute failed to upload.', | 115 | 'uploaded' => 'The :attribute failed to upload.', | |
| 115 | 'url' => 'The :attribute format is invalid.', | 116 | 'url' => 'The :attribute format is invalid.', | |
| 116 | 'uuid' => 'The :attribute must be a valid UUID.', | 117 | 'uuid' => 'The :attribute must be a valid UUID.', | |
| 117 | 118 | |||
| 118 | /* | 119 | /* | |
| 119 | |-------------------------------------------------------------------------- | 120 | |-------------------------------------------------------------------------- | |
| 120 | | Custom Validation Language Lines | 121 | | Custom Validation Language Lines | |
| 121 | |-------------------------------------------------------------------------- | 122 | |-------------------------------------------------------------------------- | |
| 122 | | | 123 | | | |
| 123 | | Here you may specify custom validation messages for attributes using the | 124 | | Here you may specify custom validation messages for attributes using the | |
| 124 | | convention "attribute.rule" to name the lines. This makes it quick to | 125 | | convention "attribute.rule" to name the lines. This makes it quick to | |
| 125 | | specify a specific custom language line for a given attribute rule. | 126 | | specify a specific custom language line for a given attribute rule. | |
| 126 | | | 127 | | | |
| 127 | */ | 128 | */ | |
| 128 | 129 | |||
| 129 | 'custom' => [ | 130 | 'custom' => [ | |
| 130 | 'attribute-name' => [ | 131 | 'attribute-name' => [ | |
| 131 | 'rule-name' => 'custom-message', | 132 | 'rule-name' => 'custom-message', | |
| 132 | ], | 133 | ], | |
| 133 | ], | 134 | ], | |
| 134 | 135 | |||
| 135 | /* | 136 | /* | |
| 136 | |-------------------------------------------------------------------------- | 137 | |-------------------------------------------------------------------------- | |
| 137 | | Custom Validation Attributes | 138 | | Custom Validation Attributes | |
| 138 | |-------------------------------------------------------------------------- | 139 | |-------------------------------------------------------------------------- | |
| 139 | | | 140 | | | |
| 140 | | The following language lines are used to swap our attribute placeholder | 141 | | The following language lines are used to swap our attribute placeholder | |
| 141 | | with something more reader friendly such as "E-Mail Address" instead | 142 | | with something more reader friendly such as "E-Mail Address" instead | |
| 142 | | of "email". This simply helps us make our message more expressive. | 143 | | of "email". This simply helps us make our message more expressive. | |
| 143 | | | 144 | | | |
| 144 | */ | 145 | */ | |
| 145 | 146 | |||
| 146 | 'attributes' => [], | 147 | 'attributes' => [], | |
| 147 | 148 | |||
| 148 | ]; | 149 | ]; |