Level 10
I suggest you use Events for this.
In your EventServiceProvider.php
protected $listen = [
UserLoggedIn::class=> [
LogOutOnOtherDevice::class,
],
]
1 like
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Any existing idea or package that allows me to validate that there can only be one session per device, I need that when I have x session on x device and log on to a different one, the previous one or the others that are active must be closed, Thanks in advance
Please or to participate in this conversation.