src/Foundation/AbstractValidator.php
protected function makeValidator(array $attributes)
    {
        $rules = array_only($this->getRules(), array_keys($attributes));

        $validator = $this->validator->make($attributes, $rules, $this->getMessages());

        $this->events->dispatch(
            new Validating($this, $validator)
        );

        return $validator;
    }
protected function makeValidator(array $attributes)
    {
        $rules = array_only($this->getRules(), array_keys($attributes));

        $validator = $this->validator->make($attributes, $rules, $this->getMessages());

        $this->events->dispatch(
            new Validating($this, $validator)
        );

        return $validator;
    }
protected function makeValidator ( array $ attributes ) { $ rules = array_only ( $ this -> getRules ( ) , array_keys ( $ attributes ) ) ; $ validator = $ this -> validator -> make ( $ attributes , $ rules , $ this -> getMessages ( ) ) ; $ this -> events -> dispatch ( new Validating ( $ this , $ validator ) ) ; return $ validator ; }
Make a new validator instance for this model.

@param array $attributes
@return \Illuminate\Validation\Validator
Make a new validator instance for this model .