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

		$this->errors[ $attribute ]['errors'][] = $message;

		if( !isset( $this->errors[ $attribute ]['value'] )) {
			$this->errors[ $attribute ]['value'] = $this->getValue( $attribute );
		}
	}
protected function addError( $attribute, $rule, array $parameters )
	{
		$message = $this->getMessage( $attribute, $rule, $parameters );

		$this->errors[ $attribute ]['errors'][] = $message;

		if( !isset( $this->errors[ $attribute ]['value'] )) {
			$this->errors[ $attribute ]['value'] = $this->getValue( $attribute );
		}
	}
protected function addError ( $ attribute , $ rule , array $ parameters ) { $ message = $ this -> getMessage ( $ attribute , $ rule , $ parameters ) ; $ this -> errors [ $ attribute ] [ 'errors' ] [ ] = $ message ; if ( ! isset ( $ this -> errors [ $ attribute ] [ 'value' ] ) ) { $ this -> errors [ $ attribute ] [ 'value' ] = $ this -> getValue ( $ attribute ) ; } }
Add an error message to the validator's collection of errors.

@param string $attribute
@param string $rule

@return void
Add an error message to the validator s collection of errors .