I need some help on how can I get data of current online user only. What I want is when user A is log in, system will show only info of user A. I use sanctum for authentication. I use session for my web-based system. Here is the query that I use for my web-based system
$query = "SELECT * FROM job_register WHERE job_assign ='{$_SESSION['username']}'"