Validators/BaseValidator.php
public function passes($action = null)
    {
        $this->data = $this->sanitize($this->data);

        $rules = $this->getRules($action);
        $validator = $this->validator->make($this->data, $rules);

        if ($validator->fails()) {
            $this->errors = $validator->messages();

            return false;
        }

        return true;
    }
public function passes($action = null)
    {
        $this->data = $this->sanitize($this->data);

        $rules = $this->getRules($action);
        $validator = $this->validator->make($this->data, $rules);

        if ($validator->fails()) {
            $this->errors = $validator->messages();

            return false;
        }

        return true;
    }
public function passes ( $ action = null ) { $ this -> data = $ this -> sanitize ( $ this -> data ) ; $ rules = $ this -> getRules ( $ action ) ; $ validator = $ this -> validator -> make ( $ this -> data , $ rules ) ; if ( $ validator -> fails ( ) ) { $ this -> errors = $ validator -> messages ( ) ; return false ; } return true ; }
Pass the data and the rules to the validator.

@param string $action

@return bool
Pass the data and the rules to the validator .