Action Logger

Codacy Badge StyleCI License Total Downloads Latest Stable Version

User actions logger dependency for Laravel.

This package works exclusively within the Enso ecosystem.

The front end assets that utilize this api are present in the ui package.

For live examples and demos, you may visit


Comes pre-installed in Enso.


  • creates the action-logger middleware, the action_logs table and the ActionLog model
  • will log all access routes covered by the action-logger middleware
  • comes with the ActionLogs trait that defines the relationship to the ActionLog model, and should be included in your user model
  • each entry will record user_id, url, route name, http method verb and timestamps


  1. Include the action-logger middleware on the routes that you want covered

  2. Add the ActionLogs trait on your user model, so you may retrieve the user's actions

Since the logged info contains the user_id, this means you cannot use the middleware on routes where the user information is unavailable (e.g. the user is not authenticated).


are welcome. Pull requests are great, but issues are good too.


This package is released under the MIT license.