src/AlertsMessageBag.php
public function flush($withSession = true)
    {
        $this->messages = [];
        
        if($withSession) {
            $this->session->forget($this->getSessionKey());
        }

        return $this;
    }
public function flush($withSession = true)
    {
        $this->messages = [];
        
        if($withSession) {
            $this->session->forget($this->getSessionKey());
        }

        return $this;
    }
public function flush ( $ withSession = true ) { $ this -> messages = [ ] ; if ( $ withSession ) { $ this -> session -> forget ( $ this -> getSessionKey ( ) ) ; } return $ this ; }
Deletes all messages.

@param bool $withSession

@return \Prologue\Alerts\AlertsMessageBag
Deletes all messages .