Overtrue\Validation\Validator::parseRule PHP Method

parseRule() protected method

Extract the rule name and parameters from a rule.
protected parseRule ( array | string $rules ) : array
$rules array | string
return array
    protected function parseRule($rules)
    {
        if (is_array($rules)) {
            return $this->parseArrayRule($rules);
        }
        return $this->parseStringRule($rules);
    }
Validator