How to restrict an end user to login only at one device at a time in Laravel

I have developed an application using Laravel 9 and I want to restrict my endusers to login only at a single device at one time. The end user should not shares his user id and password with other users and login both at one time.

How can I restrict the end user login if same user credentials are already logged in from other machine or location or device??

I did try to save current session id in db with last timestamp of login and delete that same when end user logout. in this case if end user do not logout my previous session does not expire