|
1 | 1 | <?php |
2 | | - |
3 | | -declare(strict_types=1); |
4 | | - |
5 | 2 | return [ |
6 | | - |
7 | 3 | /* |
8 | 4 | |-------------------------------------------------------------------------- |
9 | 5 | | Validation Language Lines |
|
14 | 10 | | as the size rules. Feel free to tweak each of these messages here. |
15 | 11 | | |
16 | 12 | */ |
17 | | - |
18 | 13 | 'accepted' => 'The :attribute must be accepted.', |
19 | 14 | 'accepted_if' => 'The :attribute must be accepted when :other is :value.', |
20 | 15 | 'active_url' => 'The :attribute is not a valid URL.', |
|
147 | 142 | 'url' => 'The :attribute must be a valid URL.', |
148 | 143 | 'ulid' => 'The :attribute must be a valid ULID.', |
149 | 144 | 'uuid' => 'The :attribute must be a valid UUID.', |
150 | | - |
151 | | - /* |
152 | | - |-------------------------------------------------------------------------- |
153 | | - | Custom Validation Language Lines |
154 | | - |-------------------------------------------------------------------------- |
155 | | - | |
156 | | - | Here you may specify custom validation messages for attributes using the |
157 | | - | convention "attribute.rule" to name the lines. This makes it quick to |
158 | | - | specify a specific custom language line for a given attribute rule. |
159 | | - | |
160 | | - */ |
161 | | - |
162 | | - 'custom' => [ |
163 | | - 'attribute-name' => [ |
164 | | - 'rule-name' => 'custom-message', |
165 | | - ], |
| 145 | + 'attributes' => [ |
| 146 | + 'password' => 'Password', |
166 | 147 | ], |
167 | | - |
168 | | - /* |
169 | | - |-------------------------------------------------------------------------- |
170 | | - | Custom Validation Attributes |
171 | | - |-------------------------------------------------------------------------- |
172 | | - | |
173 | | - | The following language lines are used to swap our attribute placeholder |
174 | | - | with something more reader friendly such as "E-Mail Address" instead |
175 | | - | of "email". This simply helps us make our message more expressive. |
176 | | - | |
177 | | - */ |
178 | | - |
179 | | - 'attributes' => [], |
180 | | - |
181 | 148 | ]; |
0 commit comments