source: resources/lang/en/validation.php@ dfae77e

Last change on this file since dfae77e was dfae77e, checked in by Igor Danilovski <igor_danilovski@…>, 22 months ago
  • Initial commit;
  • Property mode set to 100644
File size: 8.2 KB
Line 
1<?php
2
3return [
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 'before' => 'The :attribute must be a date before :date.',
26 'before_or_equal' => 'The :attribute must be a date before or equal to :date.',
27 'between' => [
28 'numeric' => 'The :attribute must be between :min and :max.',
29 'file' => 'The :attribute must be between :min and :max kilobytes.',
30 'string' => 'The :attribute must be between :min and :max characters.',
31 'array' => 'The :attribute must have between :min and :max items.',
32 ],
33 'boolean' => 'The :attribute field must be true or false.',
34 'confirmed' => 'The :attribute confirmation does not match.',
35 'current_password' => 'The password is incorrect.',
36 'date' => 'The :attribute is not a valid date.',
37 'date_equals' => 'The :attribute must be a date equal to :date.',
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.',
41 'different' => 'The :attribute and :other must be different.',
42 'digits' => 'The :attribute must be :digits digits.',
43 'digits_between' => 'The :attribute must be between :min and :max digits.',
44 'dimensions' => 'The :attribute has invalid image dimensions.',
45 'distinct' => 'The :attribute field has a duplicate value.',
46 'email' => 'The :attribute must be a valid email address.',
47 'ends_with' => 'The :attribute must end with one of the following: :values.',
48 'enum' => 'The selected :attribute is invalid.',
49 'exists' => 'The selected :attribute is invalid.',
50 'file' => 'The :attribute must be a file.',
51 'filled' => 'The :attribute field must have a value.',
52 'gt' => [
53 'numeric' => 'The :attribute must be greater than :value.',
54 'file' => 'The :attribute must be greater than :value kilobytes.',
55 'string' => 'The :attribute must be greater than :value characters.',
56 'array' => 'The :attribute must have more than :value items.',
57 ],
58 'gte' => [
59 'numeric' => 'The :attribute must be greater than or equal to :value.',
60 'file' => 'The :attribute must be greater than or equal to :value kilobytes.',
61 'string' => 'The :attribute must be greater than or equal to :value characters.',
62 'array' => 'The :attribute must have :value items or more.',
63 ],
64 'image' => 'The :attribute must be an image.',
65 'in' => 'The selected :attribute is invalid.',
66 'in_array' => 'The :attribute field does not exist in :other.',
67 'integer' => 'The :attribute must be an integer.',
68 'ip' => 'The :attribute must be a valid IP address.',
69 'ipv4' => 'The :attribute must be a valid IPv4 address.',
70 'ipv6' => 'The :attribute must be a valid IPv6 address.',
71 'mac_address' => 'The :attribute must be a valid MAC address.',
72 'json' => 'The :attribute must be a valid JSON string.',
73 'lt' => [
74 'numeric' => 'The :attribute must be less than :value.',
75 'file' => 'The :attribute must be less than :value kilobytes.',
76 'string' => 'The :attribute must be less than :value characters.',
77 'array' => 'The :attribute must have less than :value items.',
78 ],
79 'lte' => [
80 'numeric' => 'The :attribute must be less than or equal to :value.',
81 'file' => 'The :attribute must be less than or equal to :value kilobytes.',
82 'string' => 'The :attribute must be less than or equal to :value characters.',
83 'array' => 'The :attribute must not have more than :value items.',
84 ],
85 'max' => [
86 'numeric' => 'The :attribute must not be greater than :max.',
87 'file' => 'The :attribute must not be greater than :max kilobytes.',
88 'string' => 'The :attribute must not be greater than :max characters.',
89 'array' => 'The :attribute must not have more than :max items.',
90 ],
91 'mimes' => 'The :attribute must be a file of type: :values.',
92 'mimetypes' => 'The :attribute must be a file of type: :values.',
93 'min' => [
94 'numeric' => 'The :attribute must be at least :min.',
95 'file' => 'The :attribute must be at least :min kilobytes.',
96 'string' => 'The :attribute must be at least :min characters.',
97 'array' => 'The :attribute must have at least :min items.',
98 ],
99 'multiple_of' => 'The :attribute must be a multiple of :value.',
100 'not_in' => 'The selected :attribute is invalid.',
101 'not_regex' => 'The :attribute format is invalid.',
102 'numeric' => 'The :attribute must be a number.',
103 'password' => 'The password is incorrect.',
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.',
109 'regex' => 'The :attribute format is invalid.',
110 'required' => 'The :attribute field is required.',
111 'required_if' => 'The :attribute field is required when :other is :value.',
112 'required_unless' => 'The :attribute field is required unless :other is in :values.',
113 'required_with' => 'The :attribute field is required when :values is present.',
114 'required_with_all' => 'The :attribute field is required when :values are present.',
115 'required_without' => 'The :attribute field is required when :values is not present.',
116 'required_without_all' => 'The :attribute field is required when none of :values are present.',
117 'same' => 'The :attribute and :other must match.',
118 'size' => [
119 'numeric' => 'The :attribute must be :size.',
120 'file' => 'The :attribute must be :size kilobytes.',
121 'string' => 'The :attribute must be :size characters.',
122 'array' => 'The :attribute must contain :size items.',
123 ],
124 'starts_with' => 'The :attribute must start with one of the following: :values.',
125 'string' => 'The :attribute must be a string.',
126 'timezone' => 'The :attribute must be a valid timezone.',
127 'unique' => 'The :attribute has already been taken.',
128 'uploaded' => 'The :attribute failed to upload.',
129 'url' => 'The :attribute must be a valid URL.',
130 'uuid' => 'The :attribute must be a valid UUID.',
131
132 /*
133 |--------------------------------------------------------------------------
134 | Custom Validation Language Lines
135 |--------------------------------------------------------------------------
136 |
137 | Here you may specify custom validation messages for attributes using the
138 | convention "attribute.rule" to name the lines. This makes it quick to
139 | specify a specific custom language line for a given attribute rule.
140 |
141 */
142
143 'custom' => [
144 'attribute-name' => [
145 'rule-name' => 'custom-message',
146 ],
147 ],
148
149 /*
150 |--------------------------------------------------------------------------
151 | Custom Validation Attributes
152 |--------------------------------------------------------------------------
153 |
154 | The following language lines are used to swap our attribute placeholder
155 | with something more reader friendly such as "E-Mail Address" instead
156 | of "email". This simply helps us make our message more expressive.
157 |
158 */
159
160 'attributes' => [],
161
162];
Note: See TracBrowser for help on using the repository browser.