Support the ongoing development of →
Authentication Session Eloquent
Last updated 2 years ago.

There probably are some packages you can use, but if you think about how you would do something like this you would need to "temporary" log the administrator account out, but also add in something in your session to say you are "impersonating" someone so that you can switch back...

Basically think about you will logout yourself, login as the other user, and then add some items into that session that allows you to logout from the user and back into yourself.


Opening another browser should do the trick.


You could try using the [sarav multi-auth package] ( I have used it and for me it works although for my needs I needed the admin to be authenticated from a different table other than users


Sign in to participate in this thread!


Your banner here too?


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 - All rights reserved.