src/Alert/Container.php
protected function withDefaults($messages)
    {
        $defaults = array(
            'details' => '',
            'html' => '',
            'list' => [],
            'buttons' => [],
        );

        foreach ($messages as &$message) {
            $message = array_merge($defaults, $message);
        }

        return $messages;
    }
protected function withDefaults($messages)
    {
        $defaults = array(
            'details' => '',
            'html' => '',
            'list' => [],
            'buttons' => [],
        );

        foreach ($messages as &$message) {
            $message = array_merge($defaults, $message);
        }

        return $messages;
    }
protected function withDefaults ( $ messages ) { $ defaults = array ( 'details' => '' , 'html' => '' , 'list' => [ ] , 'buttons' => [ ] , ) ; foreach ( $ messages as & $ message ) { $ message = array_merge ( $ defaults , $ message ) ; } return $ messages ; }
Add the optional defaults for each alert message so you don't have to use
isset in the template nor persist empty values through the handler.

@param $messages
@return array
Add the optional defaults for each alert message so you don t have to use isset in the template nor persist empty values through the handler .