Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auth::login($user) doesn't persist when I go to the homepage. #253

Open
zubaer-ahammed opened this issue Nov 7, 2021 · 1 comment
Open

Comments

@zubaer-ahammed
Copy link

I login using Auth::login($user) which returns 'true' inside the Listener. But it doesn't keep user Logged in when I go to other pages.

@zubaer-ahammed
Copy link
Author

Found solution at last!
So, Auth::login($user) was not working for me even after trying everything. (Added middlewares, etc).
It worked for me after removing all dump(), var_dump(), die(), etc. from the Listener! :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant