You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Utils/ErrorMessageTrait.php
+7-3Lines changed: 7 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -42,6 +42,7 @@ trait ErrorMessageTrait
42
42
'notIn' => '{attr} cannot in ({value0})',
43
43
'string' => ['{attr} must be a string',
44
44
'{attr} must be a string and minimum length be {min}', '{attr} must be a string and length range must be {min} ~ {max}'],
45
+
'regex' => '{attr} does not match the {value0} conditions',
45
46
'regexp' => '{attr} does not match the {value0} conditions',
46
47
47
48
'mustBe' => '{attr} must be equals to {value0}',
@@ -50,7 +51,10 @@ trait ErrorMessageTrait
50
51
'compare' => '{attr} must be equals to {value0}', 'same' => '{attr} must be equals to {value0}', 'equal' => '{attr} must be equals to {value0}',
51
52
'notEqual' => '{attr} can not be equals to {value0}',
52
53
53
-
'isArray' => '{attr} must be an array', 'isMap' => '{attr} must be an array and is key-value format', 'isList' => '{attr} must be an array of nature', 'intList' => '{attr} must be an array and value is all integers', 'strList' => '{attr} must be an array and value is all strings', 'json' => '{attr} must be an json string', 'file' => '{attr} must be an uploaded file', 'image' => '{attr} must be an uploaded image file', 'callback' => '{attr} don\'t pass the test and verify!', '_' => '{attr} validation is not through!'];
54
+
'isArray' => '{attr} must be an array', 'isMap' => '{attr} must be an array and is key-value format', 'isList' => '{attr} must be an array of nature',
55
+
'intList' => '{attr} must be an array and value is all integers',
56
+
'numList' => '{attr} must be an array and value is all numbers',
57
+
'strList' => '{attr} must be an array and value is all strings', 'json' => '{attr} must be an json string', 'file' => '{attr} must be an uploaded file', 'image' => '{attr} must be an uploaded image file', 'callback' => '{attr} don\'t pass the test and verify!', '_' => '{attr} validation is not through!'];
54
58
/**
55
59
* attribute field translate list
56
60
* @var array
@@ -320,7 +324,7 @@ public function getTranslate($attr)
0 commit comments