After redirect Toast message #5434
-
|
On Resource delete action, handle method returns to its parent How can I pass a toast message like "This record has been deleted" with it? |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 3 replies
-
|
Any updates? |
Beta Was this translation helpful? Give feedback.
-
|
Ability to redirect AND show a message would be an appreciated addition to the Nova actions. |
Beta Was this translation helpful? Give feedback.
-
|
Would love to hear some ideas or updates on this, even a hacky solution would be appreciated ! |
Beta Was this translation helpful? Give feedback.
-
|
Do note that not all actions/requests in Laravel Nova trigger a "redirect". Most would only fetch contents without going through Inertia and it might be best to have it handled using Laravel broadcast with |
Beta Was this translation helpful? Give feedback.
-
|
Hi @crynobone. Any chance this one made its way into the roadmap? |
Beta Was this translation helpful? Give feedback.
-
|
Just noticed that this feature has been implemented in v4.27.0.
An example: return Action::visit('resources/users')->withDangerMessage('Oh, my...');Thanks! |
Beta Was this translation helpful? Give feedback.
Just noticed that this feature has been implemented in v4.27.0.
An example:
Thanks!