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

        return $this;
    }