|
14 | 14 | */
|
15 | 15 |
|
16 | 16 | 'accepted' => 'The :attribute must be accepted.',
|
| 17 | + 'accepted_if' => 'The :attribute must be accepted when :other is :value.', |
17 | 18 | 'active_url' => 'The :attribute is not a valid URL.',
|
18 | 19 | 'after' => 'The :attribute must be a date after :date.',
|
19 | 20 | '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, and dashes.', |
22 |
| - 'alpha_num' => 'The :attribute may only contain letters and numbers.', |
| 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.', |
23 | 24 | 'array' => 'The :attribute must be an array.',
|
24 | 25 | 'before' => 'The :attribute must be a date before :date.',
|
25 | 26 | 'before_or_equal' => 'The :attribute must be a date before or equal to :date.',
|
26 | 27 | 'between' => [
|
27 |
| - 'numeric' => 'The :attribute must be between :min and :max.', |
| 28 | + 'array' => 'The :attribute must have between :min and :max items.', |
28 | 29 | 'file' => 'The :attribute must be between :min and :max kilobytes.',
|
| 30 | + 'numeric' => 'The :attribute must be between :min and :max.', |
29 | 31 | 'string' => 'The :attribute must be between :min and :max characters.',
|
30 |
| - 'array' => 'The :attribute must have between :min and :max items.', |
31 | 32 | ],
|
32 | 33 | 'boolean' => 'The :attribute field must be true or false.',
|
33 | 34 | 'confirmed' => 'The :attribute confirmation does not match.',
|
| 35 | + 'current_password' => 'The password is incorrect.', |
34 | 36 | 'date' => 'The :attribute is not a valid date.',
|
35 | 37 | 'date_equals' => 'The :attribute must be a date equal to :date.',
|
36 | 38 | 'date_format' => 'The :attribute does not match the format :format.',
|
| 39 | + 'declined' => 'The :attribute must be declined.', |
| 40 | + 'declined_if' => 'The :attribute must be declined when :other is :value.', |
37 | 41 | 'different' => 'The :attribute and :other must be different.',
|
38 | 42 | 'digits' => 'The :attribute must be :digits digits.',
|
39 | 43 | 'digits_between' => 'The :attribute must be between :min and :max digits.',
|
40 | 44 | 'dimensions' => 'The :attribute has invalid image dimensions.',
|
41 | 45 | 'distinct' => 'The :attribute field has a duplicate value.',
|
42 | 46 | 'email' => 'The :attribute must be a valid email address.',
|
43 |
| - 'ends_with' => 'The :attribute must end with one of the following: :values', |
| 47 | + 'ends_with' => 'The :attribute must end with one of the following: :values.', |
| 48 | + 'enum' => 'The selected :attribute is invalid.', |
44 | 49 | 'exists' => 'The selected :attribute is invalid.',
|
45 | 50 | 'file' => 'The :attribute must be a file.',
|
46 |
| - 'filled' => 'The :attribute field is required.', |
| 51 | + 'filled' => 'The :attribute field must have a value.', |
47 | 52 | 'gt' => [
|
48 |
| - 'numeric' => 'The :attribute must be greater than :value.', |
| 53 | + 'array' => 'The :attribute must have more than :value items.', |
49 | 54 | 'file' => 'The :attribute must be greater than :value kilobytes.',
|
| 55 | + 'numeric' => 'The :attribute must be greater than :value.', |
50 | 56 | 'string' => 'The :attribute must be greater than :value characters.',
|
51 |
| - 'array' => 'The :attribute must have more than :value items.', |
52 | 57 | ],
|
53 | 58 | 'gte' => [
|
54 |
| - 'numeric' => 'The :attribute must be greater than or equal :value.', |
55 |
| - 'file' => 'The :attribute must be greater than or equal :value kilobytes.', |
56 |
| - 'string' => 'The :attribute must be greater than or equal :value characters.', |
57 | 59 | 'array' => 'The :attribute must have :value items or more.',
|
| 60 | + 'file' => 'The :attribute must be greater than or equal to :value kilobytes.', |
| 61 | + 'numeric' => 'The :attribute must be greater than or equal to :value.', |
| 62 | + 'string' => 'The :attribute must be greater than or equal to :value characters.', |
58 | 63 | ],
|
59 | 64 | 'image' => 'The :attribute must be an image.',
|
60 | 65 | 'in' => 'The selected :attribute is invalid.',
|
|
65 | 70 | 'ipv6' => 'The :attribute must be a valid IPv6 address.',
|
66 | 71 | 'json' => 'The :attribute must be a valid JSON string.',
|
67 | 72 | 'lt' => [
|
68 |
| - 'numeric' => 'The :attribute must be less than :value.', |
| 73 | + 'array' => 'The :attribute must have less than :value items.', |
69 | 74 | 'file' => 'The :attribute must be less than :value kilobytes.',
|
| 75 | + 'numeric' => 'The :attribute must be less than :value.', |
70 | 76 | 'string' => 'The :attribute must be less than :value characters.',
|
71 |
| - 'array' => 'The :attribute must have less than :value items.', |
72 | 77 | ],
|
73 | 78 | 'lte' => [
|
74 |
| - 'numeric' => 'The :attribute must be less than or equal :value.', |
75 |
| - 'file' => 'The :attribute must be less than or equal :value kilobytes.', |
76 |
| - 'string' => 'The :attribute must be less than or equal :value characters.', |
77 | 79 | 'array' => 'The :attribute must not have more than :value items.',
|
| 80 | + 'file' => 'The :attribute must be less than or equal to :value kilobytes.', |
| 81 | + 'numeric' => 'The :attribute must be less than or equal to :value.', |
| 82 | + 'string' => 'The :attribute must be less than or equal to :value characters.', |
78 | 83 | ],
|
| 84 | + 'mac_address' => 'The :attribute must be a valid MAC address.', |
79 | 85 | 'max' => [
|
80 |
| - 'numeric' => 'The :attribute may not be greater than :max.', |
81 |
| - 'file' => 'The :attribute may not be greater than :max kilobytes.', |
82 |
| - 'string' => 'The :attribute may not be greater than :max characters.', |
83 |
| - 'array' => 'The :attribute may not have more than :max items.', |
| 86 | + 'array' => 'The :attribute must not have more than :max items.', |
| 87 | + 'file' => 'The :attribute must not be greater than :max kilobytes.', |
| 88 | + 'numeric' => 'The :attribute must not be greater than :max.', |
| 89 | + 'string' => 'The :attribute must not be greater than :max characters.', |
84 | 90 | ],
|
85 | 91 | 'mimes' => 'The :attribute must be a file of type: :values.',
|
86 | 92 | 'mimetypes' => 'The :attribute must be a file of type: :values.',
|
87 | 93 | 'min' => [
|
88 |
| - 'numeric' => 'The :attribute must be at least :min.', |
| 94 | + 'array' => 'The :attribute must have at least :min items.', |
89 | 95 | 'file' => 'The :attribute must be at least :min kilobytes.',
|
| 96 | + 'numeric' => 'The :attribute must be at least :min.', |
90 | 97 | 'string' => 'The :attribute must be at least :min characters.',
|
91 |
| - 'array' => 'The :attribute must have at least :min items.', |
92 | 98 | ],
|
| 99 | + 'multiple_of' => 'The :attribute must be a multiple of :value.', |
93 | 100 | 'not_in' => 'The selected :attribute is invalid.',
|
94 | 101 | 'not_regex' => 'The :attribute format is invalid.',
|
95 | 102 | 'numeric' => 'The :attribute must be a number.',
|
| 103 | + 'password' => 'The password is incorrect.', |
96 | 104 | 'present' => 'The :attribute field must be present.',
|
| 105 | + 'prohibited' => 'The :attribute field is prohibited.', |
| 106 | + 'prohibited_if' => 'The :attribute field is prohibited when :other is :value.', |
| 107 | + 'prohibited_unless' => 'The :attribute field is prohibited unless :other is in :values.', |
| 108 | + 'prohibits' => 'The :attribute field prohibits :other from being present.', |
97 | 109 | 'regex' => 'The :attribute format is invalid.',
|
98 | 110 | 'required' => 'The :attribute field is required.',
|
| 111 | + 'required_array_keys' => 'The :attribute field must contain entries for: :values.', |
99 | 112 | 'required_if' => 'The :attribute field is required when :other is :value.',
|
100 | 113 | 'required_unless' => 'The :attribute field is required unless :other is in :values.',
|
101 | 114 | 'required_with' => 'The :attribute field is required when :values is present.',
|
102 |
| - 'required_with_all' => 'The :attribute field is required when :values is present.', |
| 115 | + 'required_with_all' => 'The :attribute field is required when :values are present.', |
103 | 116 | 'required_without' => 'The :attribute field is required when :values is not present.',
|
104 | 117 | 'required_without_all' => 'The :attribute field is required when none of :values are present.',
|
105 | 118 | 'same' => 'The :attribute and :other must match.',
|
106 | 119 | 'size' => [
|
107 |
| - 'numeric' => 'The :attribute must be :size.', |
| 120 | + 'array' => 'The :attribute must contain :size items.', |
108 | 121 | 'file' => 'The :attribute must be :size kilobytes.',
|
| 122 | + 'numeric' => 'The :attribute must be :size.', |
109 | 123 | 'string' => 'The :attribute must be :size characters.',
|
110 |
| - 'array' => 'The :attribute must contain :size items.', |
111 | 124 | ],
|
112 |
| - 'starts_with' => 'The :attribute must start with one of the following: :values', |
| 125 | + 'starts_with' => 'The :attribute must start with one of the following: :values.', |
113 | 126 | 'string' => 'The :attribute must be a string.',
|
114 |
| - 'timezone' => 'The :attribute must be a valid zone.', |
| 127 | + 'timezone' => 'The :attribute must be a valid timezone.', |
115 | 128 | 'unique' => 'The :attribute has already been taken.',
|
116 | 129 | 'uploaded' => 'The :attribute failed to upload.',
|
117 |
| - 'url' => 'The :attribute format is invalid.', |
| 130 | + 'url' => 'The :attribute must be a valid URL.', |
118 | 131 | 'uuid' => 'The :attribute must be a valid UUID.',
|
119 | 132 |
|
120 | 133 | /*
|
|
139 | 152 | | Custom Validation Attributes
|
140 | 153 | |--------------------------------------------------------------------------
|
141 | 154 | |
|
142 |
| - | The following language lines are used to swap attribute place-holders |
143 |
| - | with something more reader friendly such as E-Mail Address instead |
144 |
| - | of "email". This simply helps us make messages a little cleaner. |
| 155 | + | The following language lines are used to swap our attribute placeholder |
| 156 | + | with something more reader friendly such as "E-Mail Address" instead |
| 157 | + | of "email". This simply helps us make our message more expressive. |
145 | 158 | |
|
146 | 159 | */
|
147 | 160 |
|
|
0 commit comments