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