In Laravel 5, how make sure a user is authed uniquely?

I’m searching for a solution to allow a user to be logged in only once at the same time. I’m new to Laravel and in this case I’m using it nearly out of the box (file session driver and default auth-handling with custom views).

My idea is to ‘reset’ the auth for a user after he logs in a second time, to automatically make all other active sessions invalid.

So my primary question is: Is there a way to accomplish this with some Laravel magic or do I need to invent this feature myself?

Source: laravel

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.