_validator($this->field, function ($field, $params) { $value = $params[$field] ?? null; if (empty($value)) { return true; } if (!is_array($value)) { return $this->addError($field, 'The param :attribute must a array'); } return true; }, $this->params); } }