protected function addError($attribute, $rule, $parameters)
    {
        $message = $this->getMessage($attribute, $rule);

        $message = $this->doReplacements($message, $attribute, $rule, $parameters);

        $this->messages->add($attribute, $message);
    }
protected function addError($attribute, $rule, $parameters)
    {
        $message = $this->getMessage($attribute, $rule);

        $message = $this->doReplacements($message, $attribute, $rule, $parameters);

        $this->messages->add($attribute, $message);
    }
protected function addError ( $ attribute , $ rule , $ parameters ) { $ message = $ this -> getMessage ( $ attribute , $ rule ) ; $ message = $ this -> doReplacements ( $ message , $ attribute , $ rule , $ parameters ) ; $ this -> messages -> add ( $ attribute , $ message ) ; }
Add an error message to the validator's collection of messages.

@param  string  $attribute
@param  string  $rule
@param  array   $parameters
@return void
Add an error message to the validator s collection of messages .