src/Alert/Container.php
public function render($custom = null)
    {
        $messages = $this->toArray();

        if ( ! empty ($messages)) {
            $this->clearMessages();
            return $this->theme->render(
                $custom,
                ['messages' => $this->withDefaults($messages)],
                'alert'
            );
        }

        return '';
    }
public function render($custom = null)
    {
        $messages = $this->toArray();

        if ( ! empty ($messages)) {
            $this->clearMessages();
            return $this->theme->render(
                $custom,
                ['messages' => $this->withDefaults($messages)],
                'alert'
            );
        }

        return '';
    }
public function render ( $ custom = null ) { $ messages = $ this -> toArray ( ) ; if ( ! empty ( $ messages ) ) { $ this -> clearMessages ( ) ; return $ this -> theme -> render ( $ custom , [ 'messages' => $ this -> withDefaults ( $ messages ) ] , 'alert' ) ; } return '' ; }
Clear and render the alert messages of this and the previous requests.

@param string|null $custom
@return string
Clear and render the alert messages of this and the previous requests .