public function clearViewedMessages($key = null)
    {
        if (is_null($key)) {
            Session::delete('flashMessages');
        } else {
            Session::delete('flashMessages');
        }

        return true;
    }