_validator($this->field, function ($field, $params, $method) { $value = $params[$field] ?? null; if ($value === null) { return $this->addError($field, 'The :attribute can not null.'); } if (empty($value)) { return $this->addError($field, 'The :attribute can not empty.'); } return true; }, $this->params, strtolower($this->method)); } }