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 "alpha" => "The :attribute may only contain letters.", |
19 'alpha' => 'The :attribute may only contain letters.', |
20 "alpha_dash" => "The :attribute may only contain letters, numbers, and dashes.", |
20 'alpha_dash' => 'The :attribute may only contain letters, numbers, and dashes.', |
21 "alpha_num" => "The :attribute may only contain letters and numbers.", |
21 'alpha_num' => 'The :attribute may only contain letters and numbers.', |
22 "array" => "The :attribute must be an array.", |
22 'array' => 'The :attribute must be an array.', |
23 "before" => "The :attribute must be a date before :date.", |
23 'before' => 'The :attribute must be a date before :date.', |
24 "between" => [ |
24 'between' => [ |
25 "numeric" => "The :attribute must be between :min and :max.", |
25 'numeric' => 'The :attribute must be between :min and :max.', |
26 "file" => "The :attribute must be between :min and :max kilobytes.", |
26 'file' => 'The :attribute must be between :min and :max kilobytes.', |
27 "string" => "The :attribute must be between :min and :max characters.", |
27 'string' => 'The :attribute must be between :min and :max characters.', |
28 "array" => "The :attribute must have between :min and :max items.", |
28 'array' => 'The :attribute must have between :min and :max items.', |
29 ], |
29 ], |
30 "boolean" => "The :attribute field must be true or false.", |
30 'boolean' => 'The :attribute field must be true or false.', |
31 "confirmed" => "The :attribute confirmation does not match.", |
31 'confirmed' => 'The :attribute confirmation does not match.', |
32 "date" => "The :attribute is not a valid date.", |
32 'date' => 'The :attribute is not a valid date.', |
33 "date_format" => "The :attribute does not match the format :format.", |
33 'date_format' => 'The :attribute does not match the format :format.', |
34 "different" => "The :attribute and :other must be different.", |
34 'different' => 'The :attribute and :other must be different.', |
35 "digits" => "The :attribute must be :digits digits.", |
35 'digits' => 'The :attribute must be :digits digits.', |
36 "digits_between" => "The :attribute must be between :min and :max digits.", |
36 'digits_between' => 'The :attribute must be between :min and :max digits.', |
37 "email" => "The :attribute must be a valid email address.", |
37 'email' => 'The :attribute must be a valid email address.', |
38 "filled" => "The :attribute field is required.", |
38 'filled' => 'The :attribute field is required.', |
39 "exists" => "The selected :attribute is invalid.", |
39 'exists' => 'The selected :attribute is invalid.', |
40 "image" => "The :attribute must be an image.", |
40 'image' => 'The :attribute must be an image.', |
41 "in" => "The selected :attribute is invalid.", |
41 'in' => 'The selected :attribute is invalid.', |
42 "integer" => "The :attribute must be an integer.", |
42 'integer' => 'The :attribute must be an integer.', |
43 "ip" => "The :attribute must be a valid IP address.", |
43 'ip' => 'The :attribute must be a valid IP address.', |
44 "max" => [ |
44 'max' => [ |
45 "numeric" => "The :attribute may not be greater than :max.", |
45 'numeric' => 'The :attribute may not be greater than :max.', |
46 "file" => "The :attribute may not be greater than :max kilobytes.", |
46 'file' => 'The :attribute may not be greater than :max kilobytes.', |
47 "string" => "The :attribute may not be greater than :max characters.", |
47 'string' => 'The :attribute may not be greater than :max characters.', |
48 "array" => "The :attribute may not have more than :max items.", |
48 'array' => 'The :attribute may not have more than :max items.', |
49 ], |
49 ], |
50 "mimes" => "The :attribute must be a file of type: :values.", |
50 'mimes' => 'The :attribute must be a file of type: :values.', |
51 "min" => [ |
51 'min' => [ |
52 "numeric" => "The :attribute must be at least :min.", |
52 'numeric' => 'The :attribute must be at least :min.', |
53 "file" => "The :attribute must be at least :min kilobytes.", |
53 'file' => 'The :attribute must be at least :min kilobytes.', |
54 "string" => "The :attribute must be at least :min characters.", |
54 'string' => 'The :attribute must be at least :min characters.', |
55 "array" => "The :attribute must have at least :min items.", |
55 'array' => 'The :attribute must have at least :min items.', |
56 ], |
56 ], |
57 "not_in" => "The selected :attribute is invalid.", |
57 'not_in' => 'The selected :attribute is invalid.', |
58 "numeric" => "The :attribute must be a number.", |
58 'numeric' => 'The :attribute must be a number.', |
59 "regex" => "The :attribute format is invalid.", |
59 'regex' => 'The :attribute format is invalid.', |
60 "required" => "The :attribute field is required.", |
60 'required' => 'The :attribute field is required.', |
61 "required_if" => "The :attribute field is required when :other is :value.", |
61 'required_if' => 'The :attribute field is required when :other is :value.', |
62 "required_with" => "The :attribute field is required when :values is present.", |
62 'required_with' => 'The :attribute field is required when :values is present.', |
63 "required_with_all" => "The :attribute field is required when :values is present.", |
63 'required_with_all' => 'The :attribute field is required when :values is present.', |
64 "required_without" => "The :attribute field is required when :values is not present.", |
64 'required_without' => 'The :attribute field is required when :values is not present.', |
65 "required_without_all" => "The :attribute field is required when none of :values are present.", |
65 'required_without_all' => 'The :attribute field is required when none of :values are present.', |
66 "same" => "The :attribute and :other must match.", |
66 'same' => 'The :attribute and :other must match.', |
67 "size" => [ |
67 'size' => [ |
68 "numeric" => "The :attribute must be :size.", |
68 'numeric' => 'The :attribute must be :size.', |
69 "file" => "The :attribute must be :size kilobytes.", |
69 'file' => 'The :attribute must be :size kilobytes.', |
70 "string" => "The :attribute must be :size characters.", |
70 'string' => 'The :attribute must be :size characters.', |
71 "array" => "The :attribute must contain :size items.", |
71 'array' => 'The :attribute must contain :size items.', |
72 ], |
72 ], |
73 "unique" => "The :attribute has already been taken.", |
73 'unique' => 'The :attribute has already been taken.', |
74 "url" => "The :attribute format is invalid.", |
74 'url' => 'The :attribute format is invalid.', |
75 "timezone" => "The :attribute must be a valid zone.", |
75 'timezone' => 'The :attribute must be a valid zone.', |
76 |
76 |
77 /* |
77 /* |
78 |-------------------------------------------------------------------------- |
78 |-------------------------------------------------------------------------- |
79 | Custom Validation Language Lines |
79 | Custom Validation Language Lines |
80 |-------------------------------------------------------------------------- |
80 |-------------------------------------------------------------------------- |
81 | |
81 | |
82 | Here you may specify custom validation messages for attributes using the |
82 | Here you may specify custom validation messages for attributes using the |
83 | convention "attribute.rule" to name the lines. This makes it quick to |
83 | convention "attribute.rule" to name the lines. This makes it quick to |
84 | specify a specific custom language line for a given attribute rule. |
84 | specify a specific custom language line for a given attribute rule. |
85 | |
85 | |
86 */ |
86 */ |
87 |
87 |
88 'custom' => [ |
88 'custom' => [ |
89 'attribute-name' => [ |
89 'attribute-name' => [ |
90 'rule-name' => 'custom-message', |
90 'rule-name' => 'custom-message', |
91 ], |
91 ], |
92 ], |
92 ], |
93 |
93 |
94 /* |
94 /* |
95 |-------------------------------------------------------------------------- |
95 |-------------------------------------------------------------------------- |
96 | Custom Validation Attributes |
96 | Custom Validation Attributes |
97 |-------------------------------------------------------------------------- |
97 |-------------------------------------------------------------------------- |
98 | |
98 | |
99 | The following language lines are used to swap attribute place-holders |
99 | The following language lines are used to swap attribute place-holders |
100 | with something more reader friendly such as E-Mail Address instead |
100 | with something more reader friendly such as E-Mail Address instead |
101 | of "email". This simply helps us make messages a little cleaner. |
101 | of "email". This simply helps us make messages a little cleaner. |
102 | |
102 | |
103 */ |
103 */ |
104 |
104 |
105 'attributes' => [], |
105 'attributes' => [], |
106 |
106 |
107 ]; |
107 ]; |