Middleware to check if user has the profile completed
I'm attempting to direct a user to a particular page to complete their registration. The concept is that if they attempt to navigate to any page or resource, they'll be redirected to a custom page I've created where they can complete their registration.
I initially attempted to create a Middleware for this purpose, but encountered an issue where auth()->user() is not available at that moment. Therefore, I'm seeking an alternative method to consistently redirect the user to that page until certain fields in the user's table are filled.
Do you have any suggestions on how I can achieve this?
I initially attempted to create a Middleware for this purpose, but encountered an issue where auth()->user() is not available at that moment. Therefore, I'm seeking an alternative method to consistently redirect the user to that page until certain fields in the user's table are filled.
Do you have any suggestions on how I can achieve this?