public function addErrors($messages = [])
	{
		// check if messages are an array
		if(! is_array($messages) && ! $messages instanceof MessageProvider)
		{
			$messages = (array) $messages;
		}

		return $this->errors->merge($this->resolveErrorKey($messages));
	}
public function addErrors($messages = [])
	{
		// check if messages are an array
		if(! is_array($messages) && ! $messages instanceof MessageProvider)
		{
			$messages = (array) $messages;
		}

		return $this->errors->merge($this->resolveErrorKey($messages));
	}
public function addErrors ( $ messages = [ ] ) { // check if messages are an array if ( ! is_array ( $ messages ) && ! $ messages instanceof MessageProvider ) { $ messages = ( array ) $ messages ; } return $ this -> errors -> merge ( $ this -> resolveErrorKey ( $ messages ) ) ; }
Add messages to error message bag

@param array $messages (optional)

@return boolean
Add messages to error message bag