$v){ $tmp = explode('|', $k); $validate[$tmp[0]] = $v; if (!empty($tmp[1]) && empty($customAttributes[$tmp[0]])){ $customAttributes[$tmp[0]] = $tmp[1]; } } return $this->getValidationFactory()->make( $request->all(), $validate, $messages, $customAttributes )->validate(); } }