Laravel Tracking user activity

brightniyonzima picture brightniyonzima · Aug 9, 2017 · Viewed 9.8k times · Source

Is there a way i can track a logged in user activity in Laravel without using any packages? I have tried using antonioribeiro/tracker package but doesn't have a clear read me manual. I want to know details like the pages visited by a user. PS: For a small project i usually create a simple logPageHit() function that i place on the necessary Controller methods but right now am dealing with a big project

Answer

AddWeb Solution Pvt Ltd picture AddWeb Solution Pvt Ltd · Aug 9, 2017

You could use a Log package with events,with example please follow this link

OR Laravel Eloquent have many events for manage it

Hope this work for you!!!