// Validierungsregeln
protected $role = [
'name|Name'=>'require|length:5,20|chsAlphaNum',
'email|Mailbox'=>'require|email|unique:user ',
'mobile|mobile phone'=>'require"mobile|unique:user',
'password|password'=>'require|length:6,20|alphaNum|confirm'
];
/ / Daten validieren
$data = Request::port();
$rule = 'appcommonvalidateUser';
$res = $this->validate($data, $rule); // ==== Nicht ausgeführt
已解决!验证规则名变量定义和使用不一致