I have one user for login to demo of my script.
I want get how many people online now.
I use laravel 5.2
What am I do?
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
There is a laravel plugin to achieve this. here's the link :https://github.com/thomastkim/laravel-online-users
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With