Track Who

Codacy Badge StyleCI License Total Downloads Latest Stable Version

Create, update and delete authoring tracking dependency for Laravel.

This package can work independently of the Enso ecosystem.

For live examples and demos, you may visit


Comes pre-installed in Enso.

To install outside of Enso: composer require laravel-enso/trackwho


  • keeps track of the user that performed various actions on a record / model
  • requires the presence of the proper model attributes / table columns
  • once the structure is set up, by using the proper trait, the information is added automatically
  • the trait works only when the user is authenticated, in order to avoid issues during tests or when using the cli/tinker


  1. In the Model where you want to track the creating, updating or deleting user, add
use CreatedBy, UpdatedBy, DeletedBy;
  1. Make sure that the model's table has the created_by | updated_by | deleted_by column(s)


The config/enso/trackWho.php configuration file, lets you customize the following:

  • resourcePersonAttributes:

    • name, - string, the attribute used for name | default 'name'
    • appellative, - string, the attribute used for the person's appellative | default 'appellative'

    These options are useful for customizing the person resource, when the people table has been updated for due to specific project requirements.

Note that this configuration makes sense when using the package within the Enso ecosystem.


  • php artisan vendor:publish --tag=trackWho-config - configuration file
  • php artisan vendor:publish --tag=enso-config - a common alias for when wanting to update the configuration, once a newer version is released, usually used with the --force flag


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


This package is released under the MIT license.