src/Validation/Validator.php
public static function make(array $data, array $rules)
    {
        self::$validator = new V([]);
        self::$validator->labels($data);

        foreach ($rules as $rule => $columns) {
            if (is_string($columns)) {
                $columns = self::separte($columns);
            } else {
                $columns = $columns;
            }

            $value = self::getValue($rule);

            self::$validator->rule($value['rule'], $columns, $value['value']);
        }

        return new ValidationResult(self::$validator);
    }
public static function make(array $data, array $rules)
    {
        self::$validator = new V([]);
        self::$validator->labels($data);

        foreach ($rules as $rule => $columns) {
            if (is_string($columns)) {
                $columns = self::separte($columns);
            } else {
                $columns = $columns;
            }

            $value = self::getValue($rule);

            self::$validator->rule($value['rule'], $columns, $value['value']);
        }

        return new ValidationResult(self::$validator);
    }
public static function make ( array $ data , array $ rules ) { self :: $ validator = new V ( [ ] ) ; self :: $ validator -> labels ( $ data ) ; foreach ( $ rules as $ rule => $ columns ) { if ( is_string ( $ columns ) ) { $ columns = self :: separte ( $ columns ) ; } else { $ columns = $ columns ; } $ value = self :: getValue ( $ rule ) ; self :: $ validator -> rule ( $ value [ 'rule' ] , $ columns , $ value [ 'value' ] ) ; } return new ValidationResult ( self :: $ validator ) ; }
Make new validation procces.

@param array $data
@param array $rules

@return Vinala\Kernel\Validation\Validator
Make new validation procces .