|
3 | 3 | declare(strict_types=1);
|
4 | 4 |
|
5 | 5 | return [
|
6 |
| - 'accepted' => 'The :attribute field must be accepted.', |
7 |
| - 'accepted_if' => 'The :attribute field must be accepted when :other is :value.', |
8 |
| - 'active_url' => 'The :attribute field must be a valid URL.', |
9 |
| - 'after' => 'The :attribute field must be a date after :date.', |
10 |
| - 'after_or_equal' => 'The :attribute field must be a date after or equal to :date.', |
11 |
| - 'alpha' => 'The :attribute field must only contain letters.', |
12 |
| - 'alpha_dash' => 'The :attribute field must only contain letters, numbers, dashes, and underscores.', |
13 |
| - 'alpha_num' => 'The :attribute field must only contain letters and numbers.', |
14 |
| - 'array' => 'The :attribute field must be an array.', |
15 |
| - 'ascii' => 'The :attribute field must only contain single-byte alphanumeric characters and symbols.', |
16 |
| - 'attributes' => [], |
17 |
| - 'before' => 'The :attribute field must be a date before :date.', |
18 |
| - 'before_or_equal' => 'The :attribute field must be a date before or equal to :date.', |
19 |
| - 'between' => [ |
| 6 | + 'accepted' => 'The :attribute field must be accepted.', |
| 7 | + 'accepted_if' => 'The :attribute field must be accepted when :other is :value.', |
| 8 | + 'active_url' => 'The :attribute field must be a valid URL.', |
| 9 | + 'after' => 'The :attribute field must be a date after :date.', |
| 10 | + 'after_or_equal' => 'The :attribute field must be a date after or equal to :date.', |
| 11 | + 'alpha' => 'The :attribute field must only contain letters.', |
| 12 | + 'alpha_dash' => 'The :attribute field must only contain letters, numbers, dashes, and underscores.', |
| 13 | + 'alpha_num' => 'The :attribute field must only contain letters and numbers.', |
| 14 | + 'array' => 'The :attribute field must be an array.', |
| 15 | + 'ascii' => 'The :attribute field must only contain single-byte alphanumeric characters and symbols.', |
| 16 | + 'attributes' => [], |
| 17 | + 'before' => 'The :attribute field must be a date before :date.', |
| 18 | + 'before_or_equal' => 'The :attribute field must be a date before or equal to :date.', |
| 19 | + 'between' => [ |
20 | 20 | 'array' => 'The :attribute field must have between :min and :max items.',
|
21 | 21 | 'file' => 'The :attribute field must be between :min and :max kilobytes.',
|
22 | 22 | 'numeric' => 'The :attribute field must be between :min and :max.',
|
23 | 23 | 'string' => 'The :attribute field must be between :min and :max characters.',
|
24 | 24 | ],
|
25 |
| - 'boolean' => 'The :attribute field must be true or false.', |
26 |
| - 'can' => 'The :attribute field contains an unauthorized value.', |
27 |
| - 'confirmed' => 'The :attribute field confirmation does not match.', |
28 |
| - 'contains' => 'The :attribute field is missing a required value.', |
29 |
| - 'current_password' => 'The password is incorrect.', |
30 |
| - 'custom' => [ |
| 25 | + 'boolean' => 'The :attribute field must be true or false.', |
| 26 | + 'can' => 'The :attribute field contains an unauthorized value.', |
| 27 | + 'confirmed' => 'The :attribute field confirmation does not match.', |
| 28 | + 'contains' => 'The :attribute field is missing a required value.', |
| 29 | + 'current_password' => 'The password is incorrect.', |
| 30 | + 'custom' => [ |
31 | 31 | 'attribute-name' => [
|
32 | 32 | 'rule-name' => 'custom-message',
|
33 | 33 | ],
|
34 | 34 | ],
|
35 |
| - 'date' => 'The :attribute field must be a valid date.', |
36 |
| - 'date_equals' => 'The :attribute field must be a date equal to :date.', |
37 |
| - 'date_format' => 'The :attribute field must match the format :format.', |
38 |
| - 'decimal' => 'The :attribute field must have :decimal decimal places.', |
39 |
| - 'declined' => 'The :attribute field must be declined.', |
40 |
| - 'declined_if' => 'The :attribute field must be declined when :other is :value.', |
41 |
| - 'different' => 'The :attribute field and :other must be different.', |
42 |
| - 'digits' => 'The :attribute field must be :digits digits.', |
43 |
| - 'digits_between' => 'The :attribute field must be between :min and :max digits.', |
44 |
| - 'dimensions' => 'The :attribute field has invalid image dimensions.', |
45 |
| - 'distinct' => 'The :attribute field has a duplicate value.', |
46 |
| - 'doesnt_end_with' => 'The :attribute field must not end with one of the following: :values.', |
47 |
| - 'doesnt_start_with' => 'The :attribute field must not start with one of the following: :values.', |
48 |
| - 'email' => 'The :attribute field must be a valid email address.', |
49 |
| - 'ends_with' => 'The :attribute field must end with one of the following: :values.', |
50 |
| - 'enum' => 'The selected :attribute is invalid.', |
51 |
| - 'exists' => 'The selected :attribute is invalid.', |
52 |
| - 'extensions' => 'The :attribute field must have one of the following extensions: :values.', |
53 |
| - 'file' => 'The :attribute field must be a file.', |
54 |
| - 'filled' => 'The :attribute field must have a value.', |
55 |
| - 'gt' => [ |
| 35 | + 'date' => 'The :attribute field must be a valid date.', |
| 36 | + 'date_equals' => 'The :attribute field must be a date equal to :date.', |
| 37 | + 'date_format' => 'The :attribute field must match the format :format.', |
| 38 | + 'decimal' => 'The :attribute field must have :decimal decimal places.', |
| 39 | + 'declined' => 'The :attribute field must be declined.', |
| 40 | + 'declined_if' => 'The :attribute field must be declined when :other is :value.', |
| 41 | + 'different' => 'The :attribute field and :other must be different.', |
| 42 | + 'digits' => 'The :attribute field must be :digits digits.', |
| 43 | + 'digits_between' => 'The :attribute field must be between :min and :max digits.', |
| 44 | + 'dimensions' => 'The :attribute field has invalid image dimensions.', |
| 45 | + 'distinct' => 'The :attribute field has a duplicate value.', |
| 46 | + 'doesnt_end_with' => 'The :attribute field must not end with one of the following: :values.', |
| 47 | + 'doesnt_start_with' => 'The :attribute field must not start with one of the following: :values.', |
| 48 | + 'email' => 'The :attribute field must be a valid email address.', |
| 49 | + 'ends_with' => 'The :attribute field must end with one of the following: :values.', |
| 50 | + 'enum' => 'The selected :attribute is invalid.', |
| 51 | + 'exists' => 'The selected :attribute is invalid.', |
| 52 | + 'extensions' => 'The :attribute field must have one of the following extensions: :values.', |
| 53 | + 'file' => 'The :attribute field must be a file.', |
| 54 | + 'filled' => 'The :attribute field must have a value.', |
| 55 | + 'gt' => [ |
56 | 56 | 'array' => 'The :attribute field must have more than :value items.',
|
57 | 57 | 'file' => 'The :attribute field must be greater than :value kilobytes.',
|
58 | 58 | 'numeric' => 'The :attribute field must be greater than :value.',
|
59 | 59 | 'string' => 'The :attribute field must be greater than :value characters.',
|
60 | 60 | ],
|
61 |
| - 'gte' => [ |
| 61 | + 'gte' => [ |
62 | 62 | 'array' => 'The :attribute field must have :value items or more.',
|
63 | 63 | 'file' => 'The :attribute field must be greater than or equal to :value kilobytes.',
|
64 | 64 | 'numeric' => 'The :attribute field must be greater than or equal to :value.',
|
65 | 65 | 'string' => 'The :attribute field must be greater than or equal to :value characters.',
|
66 | 66 | ],
|
67 |
| - 'hex_color' => 'The :attribute field must be a valid hexadecimal color.', |
68 |
| - 'image' => 'The :attribute field must be an image.', |
69 |
| - 'in' => 'The selected :attribute is invalid.', |
70 |
| - 'in_array' => 'The :attribute field must exist in :other.', |
71 |
| - 'integer' => 'The :attribute field must be an integer.', |
72 |
| - 'ip' => 'The :attribute field must be a valid IP address.', |
73 |
| - 'ipv4' => 'The :attribute field must be a valid IPv4 address.', |
74 |
| - 'ipv6' => 'The :attribute field must be a valid IPv6 address.', |
75 |
| - 'json' => 'The :attribute field must be a valid JSON string.', |
76 |
| - 'list' => 'The :attribute field must be a list.', |
77 |
| - 'lowercase' => 'The :attribute field must be lowercase.', |
78 |
| - 'lt' => [ |
| 67 | + 'hex_color' => 'The :attribute field must be a valid hexadecimal color.', |
| 68 | + 'image' => 'The :attribute field must be an image.', |
| 69 | + 'in' => 'The selected :attribute is invalid.', |
| 70 | + 'in_array' => 'The :attribute field must exist in :other.', |
| 71 | + 'integer' => 'The :attribute field must be an integer.', |
| 72 | + 'ip' => 'The :attribute field must be a valid IP address.', |
| 73 | + 'ipv4' => 'The :attribute field must be a valid IPv4 address.', |
| 74 | + 'ipv6' => 'The :attribute field must be a valid IPv6 address.', |
| 75 | + 'json' => 'The :attribute field must be a valid JSON string.', |
| 76 | + 'list' => 'The :attribute field must be a list.', |
| 77 | + 'lowercase' => 'The :attribute field must be lowercase.', |
| 78 | + 'lt' => [ |
79 | 79 | 'array' => 'The :attribute field must have less than :value items.',
|
80 | 80 | 'file' => 'The :attribute field must be less than :value kilobytes.',
|
81 | 81 | 'numeric' => 'The :attribute field must be less than :value.',
|
82 | 82 | 'string' => 'The :attribute field must be less than :value characters.',
|
83 | 83 | ],
|
84 |
| - 'lte' => [ |
| 84 | + 'lte' => [ |
85 | 85 | 'array' => 'The :attribute field must not have more than :value items.',
|
86 | 86 | 'file' => 'The :attribute field must be less than or equal to :value kilobytes.',
|
87 | 87 | 'numeric' => 'The :attribute field must be less than or equal to :value.',
|
88 | 88 | 'string' => 'The :attribute field must be less than or equal to :value characters.',
|
89 | 89 | ],
|
90 |
| - 'mac_address' => 'The :attribute field must be a valid MAC address.', |
91 |
| - 'max' => [ |
| 90 | + 'mac_address' => 'The :attribute field must be a valid MAC address.', |
| 91 | + 'max' => [ |
92 | 92 | 'array' => 'The :attribute field must not have more than :max items.',
|
93 | 93 | 'file' => 'The :attribute field must not be greater than :max kilobytes.',
|
94 | 94 | 'numeric' => 'The :attribute field must not be greater than :max.',
|
95 | 95 | 'string' => 'The :attribute field must not be greater than :max characters.',
|
96 | 96 | ],
|
97 |
| - 'max_digits' => 'The :attribute field must not have more than :max digits.', |
98 |
| - 'mimes' => 'The :attribute field must be a file of type: :values.', |
99 |
| - 'mimetypes' => 'The :attribute field must be a file of type: :values.', |
100 |
| - 'min' => [ |
| 97 | + 'max_digits' => 'The :attribute field must not have more than :max digits.', |
| 98 | + 'mimes' => 'The :attribute field must be a file of type: :values.', |
| 99 | + 'mimetypes' => 'The :attribute field must be a file of type: :values.', |
| 100 | + 'min' => [ |
101 | 101 | 'array' => 'The :attribute field must have at least :min items.',
|
102 | 102 | 'file' => 'The :attribute field must be at least :min kilobytes.',
|
103 | 103 | 'numeric' => 'The :attribute field must be at least :min.',
|
104 | 104 | 'string' => 'The :attribute field must be at least :min characters.',
|
105 | 105 | ],
|
106 |
| - 'min_digits' => 'The :attribute field must have at least :min digits.', |
107 |
| - 'missing' => 'The :attribute field must be missing.', |
108 |
| - 'missing_if' => 'The :attribute field must be missing when :other is :value.', |
109 |
| - 'missing_unless' => 'The :attribute field must be missing unless :other is :value.', |
110 |
| - 'missing_with' => 'The :attribute field must be missing when :values is present.', |
111 |
| - 'missing_with_all' => 'The :attribute field must be missing when :values are present.', |
112 |
| - 'multiple_of' => 'The :attribute field must be a multiple of :value.', |
113 |
| - 'not_in' => 'The selected :attribute is invalid.', |
114 |
| - 'not_regex' => 'The :attribute field format is invalid.', |
115 |
| - 'numeric' => 'The :attribute field must be a number.', |
116 |
| - 'password' => [ |
| 106 | + 'min_digits' => 'The :attribute field must have at least :min digits.', |
| 107 | + 'missing' => 'The :attribute field must be missing.', |
| 108 | + 'missing_if' => 'The :attribute field must be missing when :other is :value.', |
| 109 | + 'missing_unless' => 'The :attribute field must be missing unless :other is :value.', |
| 110 | + 'missing_with' => 'The :attribute field must be missing when :values is present.', |
| 111 | + 'missing_with_all' => 'The :attribute field must be missing when :values are present.', |
| 112 | + 'multiple_of' => 'The :attribute field must be a multiple of :value.', |
| 113 | + 'not_in' => 'The selected :attribute is invalid.', |
| 114 | + 'not_regex' => 'The :attribute field format is invalid.', |
| 115 | + 'numeric' => 'The :attribute field must be a number.', |
| 116 | + 'password' => [ |
117 | 117 | 'letters' => 'The :attribute field must contain at least one letter.',
|
118 | 118 | 'mixed' => 'The :attribute field must contain at least one uppercase and one lowercase letter.',
|
119 | 119 | 'numbers' => 'The :attribute field must contain at least one number.',
|
|
149 | 149 | 'numeric' => 'The :attribute field must be :size.',
|
150 | 150 | 'string' => 'The :attribute field must be :size characters.',
|
151 | 151 | ],
|
152 |
| - 'starts_with' => 'The :attribute field must start with one of the following: :values.', |
153 |
| - 'string' => 'The :attribute field must be a string.', |
154 |
| - 'timezone' => 'The :attribute field must be a valid timezone.', |
155 |
| - 'ulid' => 'The :attribute field must be a valid ULID.', |
156 |
| - 'unique' => 'The :attribute has already been taken.', |
157 |
| - 'uploaded' => 'The :attribute failed to upload.', |
158 |
| - 'uppercase' => 'The :attribute field must be uppercase.', |
159 |
| - 'url' => 'The :attribute field must be a valid URL.', |
160 |
| - 'uuid' => 'The :attribute field must be a valid UUID.', |
| 152 | + 'starts_with' => 'The :attribute field must start with one of the following: :values.', |
| 153 | + 'string' => 'The :attribute field must be a string.', |
| 154 | + 'timezone' => 'The :attribute field must be a valid timezone.', |
| 155 | + 'ulid' => 'The :attribute field must be a valid ULID.', |
| 156 | + 'unique' => 'The :attribute has already been taken.', |
| 157 | + 'uploaded' => 'The :attribute failed to upload.', |
| 158 | + 'uppercase' => 'The :attribute field must be uppercase.', |
| 159 | + 'url' => 'The :attribute field must be a valid URL.', |
| 160 | + 'uuid' => 'The :attribute field must be a valid UUID.', |
161 | 161 | ];
|
0 commit comments