MaterialsCalculator
162 строки · 8.3 Кб
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'array' => 'The :attribute must have between :min and :max items.',
29'file' => 'The :attribute must be between :min and :max kilobytes.',
30'numeric' => 'The :attribute must be between :min and :max.',
31'string' => 'The :attribute must be between :min and :max characters.',
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'array' => 'The :attribute must have more than :value items.',
54'file' => 'The :attribute must be greater than :value kilobytes.',
55'numeric' => 'The :attribute must be greater than :value.',
56'string' => 'The :attribute must be greater than :value characters.',
57],
58'gte' => [
59'array' => 'The :attribute must have :value items or more.',
60'file' => 'The :attribute must be greater than or equal to :value kilobytes.',
61'numeric' => 'The :attribute must be greater than or equal to :value.',
62'string' => 'The :attribute must be greater than or equal to :value characters.',
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'json' => 'The :attribute must be a valid JSON string.',
72'lt' => [
73'array' => 'The :attribute must have less than :value items.',
74'file' => 'The :attribute must be less than :value kilobytes.',
75'numeric' => 'The :attribute must be less than :value.',
76'string' => 'The :attribute must be less than :value characters.',
77],
78'lte' => [
79'array' => 'The :attribute must not have more than :value items.',
80'file' => 'The :attribute must be less than or equal to :value kilobytes.',
81'numeric' => 'The :attribute must be less than or equal to :value.',
82'string' => 'The :attribute must be less than or equal to :value characters.',
83],
84'mac_address' => 'The :attribute must be a valid MAC address.',
85'max' => [
86'array' => 'The :attribute must not have more than :max items.',
87'file' => 'The :attribute must not be greater than :max kilobytes.',
88'numeric' => 'The :attribute must not be greater than :max.',
89'string' => 'The :attribute must not be greater than :max characters.',
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'array' => 'The :attribute must have at least :min items.',
95'file' => 'The :attribute must be at least :min kilobytes.',
96'numeric' => 'The :attribute must be at least :min.',
97'string' => 'The :attribute must be at least :min characters.',
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'present' => 'The :attribute field must be present.',
104'prohibited' => 'The :attribute field is prohibited.',
105'prohibited_if' => 'The :attribute field is prohibited when :other is :value.',
106'prohibited_unless' => 'The :attribute field is prohibited unless :other is in :values.',
107'prohibits' => 'The :attribute field prohibits :other from being present.',
108'regex' => 'The :attribute format is invalid.',
109'required' => 'The :attribute field is required.',
110'required_array_keys' => 'The :attribute field must contain entries for: :values.',
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'array' => 'The :attribute must contain :size items.',
120'file' => 'The :attribute must be :size kilobytes.',
121'numeric' => 'The :attribute must be :size.',
122'string' => 'The :attribute must be :size characters.',
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];
163