src/FlashMessage.php
protected function resetMessageTypes()
    {
        foreach (array_keys($this->config('types')) as $type) {
            $_SESSION[$this->alias][$type] = [];
        }
    }
protected function resetMessageTypes()
    {
        foreach (array_keys($this->config('types')) as $type) {
            $_SESSION[$this->alias][$type] = [];
        }
    }
protected function resetMessageTypes ( ) { foreach ( array_keys ( $ this -> config ( 'types' ) ) as $ type ) { $ _SESSION [ $ this -> alias ] [ $ type ] = [ ] ; } }
Clear all the messages but keep an empty array in the session

@return void
Clear all the messages but keep an empty array in the session