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

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -