public function appendMessagesWithPrefix(MessageBag $messageBag, $prefix, array $keyedMessages)
    {
        foreach ($keyedMessages as $key => $messages) {
            if ($prefix) {
                $key = $this->transformToDotSyntax($prefix . '[' . $key . ']');
            }

            foreach ((array) $messages as $message) {
                $messageBag->add($key, $message);
            }
        }
    }
public function appendMessagesWithPrefix(MessageBag $messageBag, $prefix, array $keyedMessages)
    {
        foreach ($keyedMessages as $key => $messages) {
            if ($prefix) {
                $key = $this->transformToDotSyntax($prefix . '[' . $key . ']');
            }

            foreach ((array) $messages as $message) {
                $messageBag->add($key, $message);
            }
        }
    }
public function appendMessagesWithPrefix ( MessageBag $ messageBag , $ prefix , array $ keyedMessages ) { foreach ( $ keyedMessages as $ key => $ messages ) { if ( $ prefix ) { $ key = $ this -> transformToDotSyntax ( $ prefix . '[' . $ key . ']' ) ; } foreach ( ( array ) $ messages as $ message ) { $ messageBag -> add ( $ key , $ message ) ; } } }
Add unprefixed messages with prefix to a MessageBag.

@return void
Add unprefixed messages with prefix to a MessageBag .