protected function callValidator($input, $field, $arguments)
    {
        $arguments = explode('|', $arguments);

        foreach ($arguments as $arg) {
            if ($this->multiple($arg)['multiple']) {
                switch ($this->multiple($arg)['rule']) {
                    case 'unique':
                        $table = $this->multiple($arg)['arguments'][0];
                        $column = $this->multiple($arg)['arguments'][1];
                        $this->unique($input, $table, $column);
                        break;
                }
            } else {
                switch ($arg) {
                    case 'required':
                        $this->required($field, $input);
                        break;
                    case 'email':
                        $this->email($input);
                        break;
                    case 'password':
                        $this->password($input);
                        break;
                }
            }
        }
    }
protected function callValidator($input, $field, $arguments)
    {
        $arguments = explode('|', $arguments);

        foreach ($arguments as $arg) {
            if ($this->multiple($arg)['multiple']) {
                switch ($this->multiple($arg)['rule']) {
                    case 'unique':
                        $table = $this->multiple($arg)['arguments'][0];
                        $column = $this->multiple($arg)['arguments'][1];
                        $this->unique($input, $table, $column);
                        break;
                }
            } else {
                switch ($arg) {
                    case 'required':
                        $this->required($field, $input);
                        break;
                    case 'email':
                        $this->email($input);
                        break;
                    case 'password':
                        $this->password($input);
                        break;
                }
            }
        }
    }
protected function callValidator ( $ input , $ field , $ arguments ) { $ arguments = explode ( '|' , $ arguments ) ; foreach ( $ arguments as $ arg ) { if ( $ this -> multiple ( $ arg ) [ 'multiple' ] ) { switch ( $ this -> multiple ( $ arg ) [ 'rule' ] ) { case 'unique' : $ table = $ this -> multiple ( $ arg ) [ 'arguments' ] [ 0 ] ; $ column = $ this -> multiple ( $ arg ) [ 'arguments' ] [ 1 ] ; $ this -> unique ( $ input , $ table , $ column ) ; break ; } } else { switch ( $ arg ) { case 'required' : $ this -> required ( $ field , $ input ) ; break ; case 'email' : $ this -> email ( $ input ) ; break ; case 'password' : $ this -> password ( $ input ) ; break ; } } } }
Loops through all arguments and checks what methods need to be called.

@param $input
@param $field
@param $arguments
Loops through all arguments and checks what methods need to be called .