Tag Archives: session

How To Force Log Out all Logged In User in Laravel

In some case there is situation where you have to change the main business process in your application. To ensure all user must follow new rule, you have to force logout all logged in user.

In Laravel, you can do this with less pain. In Laravel, your environment settings are stored in one file called .env. This file contains APP_KEY that used for session stuff. So all you have to do is generate new key in your .env file.