Display user data from site A to B when user update their details in laravel
Hello everyone, so right now I have two website site A and B. Both using same database.
Whenever user login or update their profile details like name , profile pic I have set in the session.
But I'm getting issue when I update my details suppose site A and then check in site B it's showing old data because I have displayed user data from session. If user again login then display as aspected.
@amitsolanki24_ Well why do you have two applications in the first place if they’re just accessing the same database, and a user should have the same login on both sites?
@amitsolanki24_ I've news for you. Auth does this anyway in order to validate the user. There is always a user model query at the start of every authenticated request.
This is how Auth::user() always has valid data about the user.