Action Logger
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 laravel-enso.com
Installation
Comes pre-installed in Enso.
Features
- creates the
action-loggermiddleware, theaction_logstable and theActionLogmodel - will log all access routes covered by the
action-loggermiddleware - comes with the
ActionLogstrait that defines the relationship to theActionLogmodel, and should be included in your user model - each entry will record
user_id,url,routename, httpmethodverb and timestamps
Usage
Include the
action-loggermiddleware on the routes that you want coveredAdd the
ActionLogstrait 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).
Contributions
are welcome. Pull requests are great, but issues are good too.
License
This package is released under the MIT license.