| 2 |
lars |
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 |
'multiple_of' => 'The :attribute must be a multiple of :value.',
|
|
|
107 |
'not_in' => 'The selected :attribute is invalid.',
|
|
|
108 |
'not_regex' => 'The :attribute format is invalid.',
|
|
|
109 |
'numeric' => 'The :attribute must be a number.',
|
|
|
110 |
'password' => [
|
|
|
111 |
'letters' => 'The :attribute must contain at least one letter.',
|
|
|
112 |
'mixed' => 'The :attribute must contain at least one uppercase and one lowercase letter.',
|
|
|
113 |
'numbers' => 'The :attribute must contain at least one number.',
|
|
|
114 |
'symbols' => 'The :attribute must contain at least one symbol.',
|
|
|
115 |
'uncompromised' => 'The given :attribute has appeared in a data leak. Please choose a different :attribute.',
|
|
|
116 |
],
|
|
|
117 |
'present' => 'The :attribute field must be present.',
|
|
|
118 |
'prohibited' => 'The :attribute field is prohibited.',
|
|
|
119 |
'prohibited_if' => 'The :attribute field is prohibited when :other is :value.',
|
|
|
120 |
'prohibited_unless' => 'The :attribute field is prohibited unless :other is in :values.',
|
|
|
121 |
'prohibits' => 'The :attribute field prohibits :other from being present.',
|
|
|
122 |
'regex' => 'The :attribute format is invalid.',
|
|
|
123 |
'required' => 'The :attribute field is required.',
|
|
|
124 |
'required_array_keys' => 'The :attribute field must contain entries for: :values.',
|
|
|
125 |
'required_if' => 'The :attribute field is required when :other is :value.',
|
|
|
126 |
'required_if_accepted' => 'The :attribute field is required when :other is accepted.',
|
|
|
127 |
'required_unless' => 'The :attribute field is required unless :other is in :values.',
|
|
|
128 |
'required_with' => 'The :attribute field is required when :values is present.',
|
|
|
129 |
'required_with_all' => 'The :attribute field is required when :values are present.',
|
|
|
130 |
'required_without' => 'The :attribute field is required when :values is not present.',
|
|
|
131 |
'required_without_all' => 'The :attribute field is required when none of :values are present.',
|
|
|
132 |
'same' => 'The :attribute and :other must match.',
|
|
|
133 |
'size' => [
|
|
|
134 |
'array' => 'The :attribute must contain :size items.',
|
|
|
135 |
'file' => 'The :attribute must be :size kilobytes.',
|
|
|
136 |
'numeric' => 'The :attribute must be :size.',
|
|
|
137 |
'string' => 'The :attribute must be :size characters.',
|
|
|
138 |
],
|
|
|
139 |
'starts_with' => 'The :attribute must start with one of the following: :values.',
|
|
|
140 |
'string' => 'The :attribute must be a string.',
|
|
|
141 |
'timezone' => 'The :attribute must be a valid timezone.',
|
|
|
142 |
'unique' => 'The :attribute has already been taken.',
|
|
|
143 |
'uploaded' => 'The :attribute failed to upload.',
|
|
|
144 |
'uppercase' => 'The :attribute must be uppercase.',
|
|
|
145 |
'url' => 'The :attribute must be a valid URL.',
|
|
|
146 |
'ulid' => 'The :attribute must be a valid ULID.',
|
|
|
147 |
'uuid' => 'The :attribute must be a valid UUID.',
|
|
|
148 |
|
|
|
149 |
/*
|
|
|
150 |
|--------------------------------------------------------------------------
|
|
|
151 |
| Custom Validation Language Lines
|
|
|
152 |
|--------------------------------------------------------------------------
|
|
|
153 |
|
|
|
|
154 |
| Here you may specify custom validation messages for attributes using the
|
|
|
155 |
| convention "attribute.rule" to name the lines. This makes it quick to
|
|
|
156 |
| specify a specific custom language line for a given attribute rule.
|
|
|
157 |
|
|
|
|
158 |
*/
|
|
|
159 |
|
|
|
160 |
'custom' => [
|
|
|
161 |
'attribute-name' => [
|
|
|
162 |
'rule-name' => 'custom-message',
|
|
|
163 |
],
|
|
|
164 |
],
|
|
|
165 |
|
|
|
166 |
/*
|
|
|
167 |
|--------------------------------------------------------------------------
|
|
|
168 |
| Custom Validation Attributes
|
|
|
169 |
|--------------------------------------------------------------------------
|
|
|
170 |
|
|
|
|
171 |
| The following language lines are used to swap our attribute placeholder
|
|
|
172 |
| with something more reader friendly such as "E-Mail Address" instead
|
|
|
173 |
| of "email". This simply helps us make our message more expressive.
|
|
|
174 |
|
|
|
|
175 |
*/
|
|
|
176 |
|
|
|
177 |
'attributes' => [],
|
|
|
178 |
|
|
|
179 |
];
|