[Suggestion] Flux::toast()->flash() #139
Replies: 10 comments 4 replies
-
You can currently do this using the
|
Beta Was this translation helpful? Give feedback.
-
The suggested solution is not working for me when using full page components / volt. I try to set a toast notification before a redirect. The notification is visible for a part of a second before the redirect occurs. The persisted toast notification is part of my app.blade.php - the layout file for the full page components. |
Beta Was this translation helpful? Give feedback.
-
Does not work for me either. Perhaps it works when the toast and redirect are done through Livewire, but my issue is needing to send the toast when hitting a non-Livewire URL that redirects. Hence the need to use a session flash. |
Beta Was this translation helpful? Give feedback.
-
I was wrong, the solution is working. I made an error with the redirect. I used: Maybe someone has the same error... |
Beta Was this translation helpful? Give feedback.
-
Thanks for reporting! We have converted this issue to a feature request for now, so we can focus on fixing any bugs first. |
Beta Was this translation helpful? Give feedback.
-
Please help. I can't make the persistent toast work. I am using a fresh Laravel installation with Breeze Livewire functional API. I added
to I added Any hint? |
Beta Was this translation helpful? Give feedback.
-
I have the same issue; I’ve tried everything and haven’t been successful. |
Beta Was this translation helpful? Give feedback.
-
When inspecting the new page, the toast is here with my custom content. For some reason, it is not shown. Maybe some of the show conditions are no longer met. I am thinking of values erased or not persisted. |
Beta Was this translation helpful? Give feedback.
-
This is persisted
|
Beta Was this translation helpful? Give feedback.
-
This has been fixed in Livewire. You can now persist toast elements between https://github.com/livewire/livewire/releases/tag/v3.5.10 |
Beta Was this translation helpful? Give feedback.
-
I'm replacing Filament Notifications with Flux::toast. Unfortunately, unlike the Filament Notifications, the Flux toasts do not survive redirects. It would be great if we can flash toast's through the session.
Sample use case:
Beta Was this translation helpful? Give feedback.
All reactions