src/Components/Validation/Validation.php
public function rules(Array $rules)
    {
        foreach ($rules as $key => $value) {
            $this->rule(
                $key, $value['label'],
                $value['rules'],
                isset($value['text']) && ! empty($value['text']) ? $value['text'] : []
            );
        }
    }
public function rules(Array $rules)
    {
        foreach ($rules as $key => $value) {
            $this->rule(
                $key, $value['label'],
                $value['rules'],
                isset($value['text']) && ! empty($value['text']) ? $value['text'] : []
            );
        }
    }
public function rules ( Array $ rules ) { foreach ( $ rules as $ key => $ value ) { $ this -> rule ( $ key , $ value [ 'label' ] , $ value [ 'rules' ] , isset ( $ value [ 'text' ] ) && ! empty ( $ value [ 'text' ] ) ? $ value [ 'text' ] : [ ] ) ; } }
Define Validation Rules

@param array $rules

@return void
Define Validation Rules