inertiajs / inertia-laravel

The Laravel adapter for Inertia.js.
https://inertiajs.com
MIT License
2.01k stars 224 forks source link

Show toast or message after request complete. #563

Closed Minhazul-Islam18 closed 7 months ago

Minhazul-Islam18 commented 8 months ago

Hey there. I'm pretty new to Inertia. Using Vue3, I would like to do something like this if I hit the route and my process is completed then show a message/Toast to let the user know about processes.

Like I update something in the database, then now shows the toast that "Updated successfully." Thanks in advance, I've tried every possible way that I've found on the internet. But alas!

davadams97 commented 7 months ago

Have you looked into router events?

Minhazul-Islam18 commented 7 months ago

Yeah, I'm doing it another way and have seen this also. both works. thanks.