Get online users in laravel
10,464
Solution 1
You could keep sessions in a DB and use last_activity
column to determine how many users are currently online.
https://laravel.com/docs/5.1/session#introduction
Solution 2
you can use the below package in order to get online users or determine if a user is online or not.
https://github.com/shetabit/visitor
Solution 3
There is a laravel plugin to achieve this. here's the link :https://github.com/thomastkim/laravel-online-users
Comments
-
paranoid almost 2 years
I have one user for login to demo of my script.
I want get how many people online now.
I uselaravel 5.2
What am I do?