Here I have show you that we can mange the sessions of particular users of multipal devices.
- You can delete sessions from multipal devices of logged-in user.
- Using Laravel Sesstion
- You can use this thing laravel 5.4 and greater version.
Step : 1
git clone https://github.com/sagarankoliya/laravel-sessions.git
Step : 2
Go to project directory using Terminal / CMD
composer install
If you don`t have composer then install Composer Download Link
Step : 3
In project directory find .env.example and rename to .env
Generate laravel application key
php artisan key:generate
Also change DB_DATABASE, DB_USERNAME, DB_PASSWORD in .env
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret
Step : 4
Run Migration
php artisan migrate
Step : 5
Run Project
php artisan serve
Visit URL : http://127.0.0.1:8000
And Create User and same user login multipal brower or system
Now you can manage sessions
Feel free to contact me if you have any query. (^_^)