stats (1)

How to do a simple Audit System in Laravel 5.5

Well, in this post I will show how I made a simple audit system using the jenssegers/agent package to get us the stats of system.

To begin, we will need to define what our system will track, in my case I needed log every access to system and track:

  • user
  • method / verb
  • path / uri
  • querystring
  • userAgent
  • ip
  • device
  • platform
  • browser
  • isDesktop
  • isMobile
  • isTablet
  • timestamps