'Detect Laravel fortify login and do something

I'm using Fortify in my Laravel 8 application that's used as an API backend to a Nuxt front-end. When a user logs in, and their log in is successful; I'd like to perform some custom functionality to update things in my database after a user logs in, how can I achieve this?

Originally posted here and suggested to use Stackoverflow



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source