validation.php
6.32 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
<?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' => ':attribute måste accepteras.',
'active_url' => ':attribute är inte en giltig webbadress.',
'after' => ':attribute måste vara ett datum efter den :date.',
'after_or_equal' => ':attribute måste vara ett datum senare eller samma dag som :date.',
'alpha' => ':attribute får endast innehålla bokstäver.',
'alpha_dash' => ':attribute får endast innehålla bokstäver, siffror och bindestreck.',
'alpha_num' => ':attribute får endast innehålla bokstäver och siffror.',
'array' => ':attribute måste vara en array.',
'before' => ':attribute måste vara ett datum innan den :date.',
'before_or_equal' => ':attribute måste vara ett datum före eller samma dag som :date.',
'between' => [
'numeric' => ':attribute måste vara en siffra mellan :min och :max.',
'file' => ':attribute måste vara mellan :min till :max kilobyte stor.',
'string' => ':attribute måste innehålla :min till :max tecken.',
'array' => ':attribute måste innehålla mellan :min - :max objekt.',
],
'boolean' => ':attribute måste vara sant eller falskt.',
'confirmed' => ':attribute bekräftelsen matchar inte.',
'date' => ':attribute är inte ett giltigt datum.',
'date_format' => ':attribute matchar inte formatet :format.',
'different' => ':attribute och :other får inte vara lika.',
'digits' => ':attribute måste vara :digits tecken.',
'digits_between' => ':attribute måste vara mellan :min och :max tecken.',
'dimensions' => ':attribute har felaktiga bilddimensioner.',
'distinct' => ':attribute innehåller fler än en repetition av samma element.',
'email' => ':attribute måste innehålla en korrekt e-postadress.',
'exists' => ':attribute är ogiltigt.',
'file' => ':attribute måste vara en fil.',
'filled' => ':attribute är obligatoriskt.',
'image' => ':attribute måste vara en bild.',
'in' => ':attribute är ogiltigt.',
'in_array' => ':attribute finns inte i :other.',
'integer' => ':attribute måste vara en siffra.',
'ip' => ':attribute måste vara en giltig IP-adress.',
'json' => ':attribute måste vara en giltig JSON-sträng.',
'max' => [
'numeric' => ':attribute får inte vara större än :max.',
'file' => ':attribute får max vara :max kilobyte stor.',
'string' => ':attribute får max innehålla :max tecken.',
'array' => ':attribute får inte innehålla mer än :max objekt.',
],
'mimes' => ':attribute måste vara en fil av typen: :values.',
'mimetypes' => ':attribute måste vara en fil av typen: :values.',
'min' => [
'numeric' => ':attribute måste vara större än :min.',
'file' => ':attribute måste vara minst :min kilobyte stor.',
'string' => ':attribute måste innehålla minst :min tecken.',
'array' => ':attribute måste innehålla minst :min objekt.',
],
'not_in' => ':attribute är ogiltigt.',
'numeric' => ':attribute måste vara en siffra.',
'present' => ':attribute måste finnas med.',
'regex' => ':attribute har ogiltigt format.',
'required' => ':attribute är obligatoriskt.',
'required_if' => ':attribute är obligatoriskt när :other är :value.',
'required_unless' => ':attribute är obligatoriskt när inte :other finns bland :values.',
'required_with' => ':attribute är obligatoriskt när :values är ifyllt.',
'required_with_all' => ':attribute är obligatoriskt när :values är ifyllt.',
'required_without' => ':attribute är obligatoriskt när :values ej är ifyllt.',
'required_without_all' => ':attribute är obligatoriskt när ingen av :values är ifyllt.',
'same' => ':attribute och :other måste vara lika.',
'size' => [
'numeric' => ':attribute måste vara :size.',
'file' => ':attribute får endast vara :size kilobyte stor.',
'string' => ':attribute måste innehålla :size tecken.',
'array' => ':attribute måste innehålla :size objekt.',
],
'string' => ':attribute måste vara en sträng.',
'timezone' => ':attribute måste vara en giltig tidszon.',
'unique' => ':attribute används redan.',
'uploaded' => ':attribute kunde inte laddas upp.',
'url' => ':attribute har ett ogiltigt format.',
/*
|--------------------------------------------------------------------------
| 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' => 'anpassat-meddelande',
],
],
/*
|--------------------------------------------------------------------------
| 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' => [],
];