php - How do I track the activity of logged in users? -
i have larval application , have many members. want track activity of logged in users on website. there way can see links of pages logged in user go within website , store them on database?
you can create user meta field in database holds json data, can keep track of url using request object such as
// full url, query string $request->fullurl() // path part of url $request->path() // root (protocol , domain) part of url) $request->root()
now can update database field using let $dbval value of column used store tracking data json array.
$newfield=json_encode(array_push(json_decode($dbval),$request->path()))
here in way can maintain records multiple users.
wiki
Comments
Post a Comment