laravel-enso/track-who

Created-by, updated-by, and deleted-by tracking traits for Laravel Enso

Maintainers

Package info

github.com/laravel-enso/track-who

pkg:composer/laravel-enso/track-who

Statistics

Installs: 42 703

Dependents: 18

Suggesters: 0

Stars: 29

Open Issues: 0

3.0.1 2026-04-21 15:28 UTC

README

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!