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.

 

1 thought on “How To Force Log Out all Logged In User in Laravel

  1. Jeffrey

    The APP_KEY is used for database encryption, changing the key results in your application not being able to decrypt the data.

    Reply

Leave a Reply

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