初始化
This commit is contained in:
35
resource/translations/en/validator.php
Normal file
35
resource/translations/en/validator.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: rocky
|
||||
* Date: 2022-02-26
|
||||
* Time: 00:44
|
||||
*/
|
||||
return [
|
||||
'required' => '{{name}}can not be null',
|
||||
'email' => 'Email format does not match',
|
||||
'idCard' => 'The email address format is incorrect',
|
||||
'url' => 'Not a valid URL address',
|
||||
'number' => 'Must be number',
|
||||
'integer' => 'Must be integer',
|
||||
'float' => 'It must be floating point number',
|
||||
'mobile' => 'Incorrect format',
|
||||
'leng' => 'The length does not meet the requirements ',
|
||||
'alpha' => 'Can only be letters',
|
||||
'alphaNum' => 'It can only be alphanumeric',
|
||||
'alnum' => 'It can only be alphanumeric',
|
||||
'alphaDash' => 'The value can contain only letters, digits, _ and -',
|
||||
'chs' => 'Can only be Chinese characters',
|
||||
'chsAlpha' => 'Only Chinese characters, letters',
|
||||
'chsAlphaNum' => 'Only Chinese characters, letters and numbers',
|
||||
'chsDash' => 'Only Chinese characters, letters, numbers, _ and - can be used',
|
||||
'in' => '{{name}}Value error',
|
||||
'equals' => '{{name}}Must be the same as the password',
|
||||
'image' => 'Must be a picture',
|
||||
'length' => '{{name}} The length must be between {{minValue}} and {{maxValue}} ',
|
||||
'creditCard' => 'Must be a valid credit card number',
|
||||
'digit' => '{{name}}Contain only numbers(0-9)',
|
||||
'base64' => '{{name}}The format must be base64',
|
||||
'arrayVal' => '{{name}} must be in array format',
|
||||
'is_channel' => '{{name}} must be in array bool format',
|
||||
];
|
||||
Reference in New Issue
Block a user