forked from pterodactyl/panel
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvalidation.php
More file actions
120 lines (114 loc) · 6.17 KB
/
validation.php
File metadata and controls
120 lines (114 loc) · 6.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<?php
return [
/*
|--------------------------------------------------------------------------
| Validation Language Lines
|--------------------------------------------------------------------------
|
| The following language lines contain the default error messages used by
| the validator class. Some of these rules have multiple versions such
| as the size rules. Feel free to tweak each of these messages here.
|
*/
'accepted' => 'El campo :attribute debe ser aceptado.',
'active_url' => 'El campo :attribute no es una URL válida.',
'after' => 'El campo :attribute debe ser una fecha después de :date.',
'after_or_equal' => 'El campo :attribute debe ser una fecha igual o después de :date.',
'alpha' => 'El campo :attribute sólo puede contener letras.',
'alpha_dash' => 'El campo :attribute sólo puede contener letras, números y guiones.',
'alpha_num' => 'El campo :attribute sólo puede contener letras y números.',
'array' => 'El campo :attribute debe ser un arreglo.',
'before' => 'El campo :attribute debe ser una fecha antes :date.',
'before_or_equal' => 'El campo :attribute debe ser una fecha antes o igual a :date.',
'between' => [
'numeric' => 'El campo :attribute debe estar entre :min - :max.',
'file' => 'El campo :attribute debe estar entre :min - :max kilobytes.',
'string' => 'El campo :attribute debe estar entre :min - :max caracteres.',
'array' => 'El campo :attribute debe tener entre :min y :max elementos.',
],
'boolean' => 'El campo :attribute debe ser verdadero o falso.',
'confirmed' => 'El campo de confirmación de :attribute no coincide.',
'date' => 'El campo :attribute no es una fecha válida.',
'date_format' => 'El campo :attribute no corresponde con el formato :format.',
'different' => 'Los campos :attribute y :other deben ser diferentes.',
'digits' => 'El campo :attribute debe ser de :digits dígitos.',
'digits_between' => 'El campo :attribute debe tener entre :min y :max dígitos.',
'dimensions' => 'El campo :attribute no tiene una dimensión válida.',
'distinct' => 'El campo :attribute tiene un valor duplicado.',
'email' => 'El formato del :attribute es inválido.',
'exists' => 'El campo :attribute seleccionado es inválido.',
'file' => 'El campo :attribute debe ser un archivo.',
'filled' => 'El campo :attribute es requerido.',
'image' => 'El campo :attribute debe ser una imagen.',
'in' => 'El campo :attribute seleccionado es inválido.',
'in_array' => 'El campo :attribute no existe en :other.',
'integer' => 'El campo :attribute debe ser un entero.',
'ip' => 'El campo :attribute debe ser una dirección IP válida.',
'json' => 'El campo :attribute debe ser una cadena JSON válida.',
'max' => [
'numeric' => 'El campo :attribute debe ser menor que :max.',
'file' => 'El campo :attribute debe ser menor que :max kilobytes.',
'string' => 'El campo :attribute debe ser menor que :max caracteres.',
'array' => 'El campo :attribute puede tener hasta :max elementos.',
],
'mimes' => 'El campo :attribute debe ser un archivo de tipo: :values.',
'mimetypes' => 'El campo :attribute debe ser un archivo de tipo: :values.',
'min' => [
'numeric' => 'El campo :attribute debe tener al menos :min.',
'file' => 'El campo :attribute debe tener al menos :min kilobytes.',
'string' => 'El campo :attribute debe tener al menos :min caracteres.',
'array' => 'El campo :attribute debe tener al menos :min elementos.',
],
'not_in' => 'El campo :attribute seleccionado es invalido.',
'numeric' => 'El campo :attribute debe ser un número.',
'present' => 'El campo :attribute debe estar presente.',
'regex' => 'El formato del campo :attribute es inválido.',
'required' => 'El campo :attribute es requerido.',
'required_if' => 'El campo :attribute es requerido cuando el campo :other es :value.',
'required_unless' => 'El campo :attribute es requerido a menos que :other esté presente en :values.',
'required_with' => 'El campo :attribute es requerido cuando :values está presente.',
'required_with_all' => 'El campo :attribute es requerido cuando :values está presente.',
'required_without' => 'El campo :attribute es requerido cuando :values no está presente.',
'required_without_all' => 'El campo :attribute es requerido cuando ningún :values está presente.',
'same' => 'El campo :attribute y :other debe coincidir.',
'size' => [
'numeric' => 'El campo :attribute debe ser :size.',
'file' => 'El campo :attribute debe tener :size kilobytes.',
'string' => 'El campo :attribute debe tener :size caracteres.',
'array' => 'El campo :attribute debe contener :size elementos.',
],
'string' => 'El campo :attribute debe ser una cadena.',
'timezone' => 'El campo :attribute debe ser una zona válida.',
'unique' => 'El campo :attribute ya ha sido tomado.',
'uploaded' => 'El campo :attribute no ha podido ser cargado.',
'url' => 'El formato de :attribute es inválido.',
/*
|--------------------------------------------------------------------------
| Custom Validation Language Lines
|--------------------------------------------------------------------------
|
| Here you may specify custom validation messages for attributes using the
| convention "attribute.rule" to name the lines. This makes it quick to
| specify a specific custom language line for a given attribute rule.
|
*/
'custom' => [
'attribute-name' => [
'rule-name' => 'custom-message',
],
],
/*
|--------------------------------------------------------------------------
| Custom Validation Attributes
|--------------------------------------------------------------------------
|
| The following language lines are used to swap attribute place-holders
| with something more reader friendly such as E-Mail Address instead
| of "email". This simply helps us make messages a little cleaner.
|
*/
'attributes' => [
'username' => 'usuario',
'password' => 'contraseña',
],
];