public function merge($messages)
    {
        if ($messages instanceof MessageProvider) {
            $messages = $messages->getMessageBag()->getMessages();
        }

        $this->messages = array_merge_recursive($this->messages, $messages);

        return $this;
    }
public function merge($messages)
    {
        if ($messages instanceof MessageProvider) {
            $messages = $messages->getMessageBag()->getMessages();
        }

        $this->messages = array_merge_recursive($this->messages, $messages);

        return $this;
    }
public function merge ( $ messages ) { if ( $ messages instanceof MessageProvider ) { $ messages = $ messages -> getMessageBag ( ) -> getMessages ( ) ; } $ this -> messages = array_merge_recursive ( $ this -> messages , $ messages ) ; return $ this ; }
Merge a new array of messages into the message bag.

@param  \Illuminate\Contracts\Support\MessageProvider|array  $messages
@return $this
Merge a new array of messages into the message bag .