Cyber Monday! Get 25% off for as long as you keep your subscription. New subscribers only.

Your Teacher | Jeffrey Way

https://laracasts.s3.amazonaws.com/avatars/jeffrey-avatar.jpg's avatar
Hi, I'm Jeffrey. I'm the creator of Laracasts and spend most of my days building the site and thinking of new ways to teach confusing concepts. I live in Orlando, Florida with my wife and two kids.

About This Episode

Published on Apr 16th, 2018

Laravel now includes the useful logoutOtherDevices method on the SessionGuard class (auth()->logoutOtherDevices()). This means, with ease, you can invalidate all other sessions for a user's account. One use-case for this is ensuring that multiple people cannot log in and access the same account simultaneously. For a second example, maybe a user accidentally signed into their account on a library computer, but forgot to logout. No problem; you can offer the functionality to click a button and instantly invalidate that library session.

Back to Series Button