original_string: public function merge($messages)
      {
          if ($messages instanceof MessageProvider) {
              $messages = $messages->getMessageBag()->getMessages();
          }
  
          $this->messages = array_merge_recursive($this->messages, $messages);
  
          return $this;
      }
code: public function merge($messages)
      {
          if ($messages instanceof MessageProvider) {
              $messages = $messages->getMessageBag()->getMessages();
          }
  
          $this->messages = array_merge_recursive($this->messages, $messages);
  
          return $this;
      }
code_tokens: public function merge ( $ messages ) { if ( $ messages instanceof MessageProvider ) { $ messages = $ messages -> getMessageBag ( ) -> getMessages ( ) ; } $ this -> messages = array_merge_recursive ( $ this -> messages , $ messages ) ; return $ this ; }
docstring: Merge a new array of messages into the message bag.
  
  @param  \Illuminate\Contracts\Support\MessageProvider|array  $messages
  @return $this
docstring_tokens: Merge a new array of messages into the message bag .