laravel-enso/track-who

Created-by, updated-by, and deleted-by tracking traits for Laravel Enso
45,050 29
Install
composer require laravel-enso/track-who
Latest Version:3.0.1
PHP:^8.0
License:MIT
Last Updated:Apr 21, 2026
Links: GitHub  ·  Packagist
Maintainer: aocneanu

Track Who

License Stable Downloads PHP Issues Merge Requests

Description

Track Who adds simple auditing traits for Enso models.

It fills the conventional created_by, updated_by, and deleted_by columns from the authenticated user and is designed to be composed into models without pulling in a full audit trail package.

Installation

Install the package:

composer require laravel-enso/track-who

Use it only on models whose tables already contain the matching audit columns.

Features

  • CreatedBy trait for created_by
  • UpdatedBy trait for updated_by
  • DeletedBy trait for deleted_by
  • Minimal surface area with no extra configuration

Usage

use Illuminate\Database\Eloquent\Model;
use LaravelEnso\TrackWho\Traits\CreatedBy;
use LaravelEnso\TrackWho\Traits\UpdatedBy;

class Voucher extends Model
{
    use CreatedBy;
    use UpdatedBy;
}

Add DeletedBy when soft-delete style author tracking is also needed.

API

This package exposes its backend integration through the routes, controllers, services, jobs, and configuration points referenced in the usage examples above.

Consumers should rely on the published config keys, documented route groups, and explicit service classes shown in the examples. Internal helper classes, listeners, casts, and background jobs are implementation details unless the README calls them out as extension points.

Depends On

This package does not depend on other Enso backend packages.

Contributions

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

Thank you to all the people who already contributed to Enso!

Related Packages

laravel-enso/charts

Server-side data builder for Chart.js, with a VueJS component for the frontend.

63,921 17
laravel-enso/helpers

Helper classes dependency for Laravel Enso

104,911 8
laravel-enso/localisation

Localisation management dependency for Laravel Enso

63,918 13
laravel-enso/select

Bootstrap Select data builder with server-side data fetching capability and a Vu...

62,349 26
laravel-enso/core

Main requirement & dependency aggregator for Laravel Enso

66,518 34