src/Repositories/Message.php
public function addMessage($message)
    {
        collect((array) $message)->each(function ($item) {
            collect($item)->flatten()->each(function ($flattened) {
                $this->messageList->push($flattened);
            });
        });
    }
public function addMessage($message)
    {
        collect((array) $message)->each(function ($item) {
            collect($item)->flatten()->each(function ($flattened) {
                $this->messageList->push($flattened);
            });
        });
    }
public function addMessage ( $ message ) { collect ( ( array ) $ message ) -> each ( function ( $ item ) { collect ( $ item ) -> flatten ( ) -> each ( function ( $ flattened ) { $ this -> messageList -> push ( $ flattened ) ; } ) ; } ) ; }
Add a message to the messages list.

@param $message

@return void
Add a message to the messages list .