"required" ] ); if($validate->fails()){ //验证错误 $this->setError($validate->errors()->first()); return false; } return true; } }