Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toast message does not expire while clicking on other pages. #79

Closed
akhtarmunir1143 opened this issue Apr 27, 2020 · 1 comment
Closed

Comments

@akhtarmunir1143
Copy link

akhtarmunir1143 commented Apr 27, 2020

Dear.
A simple issue i have been noticing maybe I am wrong. But the issue is when I return back with a toast_error message it doesn't expire at all. Wherever I click the same message appears on other pages as well.

Just like laravel uses the flash session messages which expires after a reload. In your package this doesn't work for me.

When I logout the flash session expires.

The problem might be here:
Swal.fire({!! Session::pull('alert.config') !!})

You are pullling it from session and in this case you might have put the messages in actual session and not in flash session. A flash session expires after a single redirect.

Thanks

@realrashid
Copy link
Owner

Duplicate of #81

@realrashid realrashid marked this as a duplicate of #81 Jul 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants