Erik Belusic

Erik Belusic


Navigation
Taglaravel
Featured

General

Tracking If a User Is Currently Online in Laravel (the easy way)

Posted on February 18th, 2016. 5 minute read

Today I was tasked with adding a little green dot next to a username, denoting if they are online or not, on a user profile page, in a Laravel app. My first thought was that we were going to need to spin up a node.js server and track of active socket connections for each user. Then with the currently logged in users socket, we can update...