Level 27
Is auth()->logoutOtherDevices() what you are looking for?
https://laravel.com/docs/8.x/authentication
If not, you can use session()->forget($username) or session()->flush()
https://laravel.com/docs/8.x/session
1 like
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
If the administrator account deletes a member from the database, the deleted member must log off. The session value is the member's username. How do I delete the session files on the server that has the session value deleted member session.
Is auth()->logoutOtherDevices() what you are looking for?
https://laravel.com/docs/8.x/authentication
If not, you can use session()->forget($username) or session()->flush()
https://laravel.com/docs/8.x/session
Please or to participate in this conversation.