protected function executeValidation(array $data)
    {
        if ($method = array_get($this->scenario, 'on')) {
            call_user_func_array([$this, $method], $this->scenario['arguments']);
        }

        $rules = $this->getBoundRules();

        $messages = $this->getMessages();

        $customAttributes = $this->getCustomAttributes();

        $validator = $this->factory->make($data, $rules, $messages, $customAttributes);

        return $validator->errors();
    }
protected function executeValidation(array $data)
    {
        if ($method = array_get($this->scenario, 'on')) {
            call_user_func_array([$this, $method], $this->scenario['arguments']);
        }

        $rules = $this->getBoundRules();

        $messages = $this->getMessages();

        $customAttributes = $this->getCustomAttributes();

        $validator = $this->factory->make($data, $rules, $messages, $customAttributes);

        return $validator->errors();
    }
protected function executeValidation ( array $ data ) { if ( $ method = array_get ( $ this -> scenario , 'on' ) ) { call_user_func_array ( [ $ this , $ method ] , $ this -> scenario [ 'arguments' ] ) ; } $ rules = $ this -> getBoundRules ( ) ; $ messages = $ this -> getMessages ( ) ; $ customAttributes = $ this -> getCustomAttributes ( ) ; $ validator = $ this -> factory -> make ( $ data , $ rules , $ messages , $ customAttributes ) ; return $ validator -> errors ( ) ; }
Executes the data validation against the service rules.

@param  array  $data
@return \Illuminate\Contracts\Validation\Validator
Executes the data validation against the service rules .