perform action when navigation item is clicked

When the dashboard link is clicked on the sidebar, I want to clear a value from the session. How can I tap into that?
2 Replies
Dennis Koch
Dennis Koch2y ago
Not exactly what you want, but probably close enough: Extend the Dashboard page, register your own class and overwrite the mount() method. Then you can clear the session when that page is loaded.
Jon Mason
Jon MasonOP2y ago
ok, i'll try that, thx!

Did you find this page helpful?