laravel-enso / track-who
Created-by, updated-by, and deleted-by tracking traits for Laravel Enso
Requires
- php: ^8.0
- laravel/framework: ^7.0|^8.0|^9.0|^10.0|^11.0|^12.0|^13.0
- dev-master
- 3.0.1
- 3.0.0
- 2.4.0
- 2.3.0
- 2.2.0
- 2.1.2
- 2.1.1
- 2.1.0
- 2.0.4
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0
- 1.9.4
- 1.9.3
- 1.9.2
- 1.9.1
- 1.9.0
- 1.8.9
- 1.8.8
- 1.8.7
- 1.8.6
- 1.8.5
- 1.8.4
- 1.8.3
- 1.8.2
- 1.8.1
- 1.8.0
- 1.7.8
- 1.7.7
- 1.7.6
- 1.7.5
- 1.7.4
- 1.7.3
- 1.7.2
- 1.7.1
- 1.7.0
- 1.6.0
- 1.5.11
- 1.5.10
- 1.5.9
- 1.5.8
- 1.5.7
- 1.5.6
- 1.5.5
- 1.5.4
- 1.5.3
- 1.5.2
- 1.5.1
- 1.5.0
- 1.4.0
- 1.3.3
- 1.3.2
- 1.3.1
- 1.3.0
- 1.2.1
- 1.2.0
- 1.1.4
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- dev-upgrade/laravel13-core12
- dev-feature/laravel12
- dev-upgrade/enso6-dr
- dev-upgrade/laravel8
- dev-fixes/stylci
This package is auto-updated.
Last update: 2026-04-21 15:28:27 UTC
README
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
CreatedBytrait forcreated_byUpdatedBytrait forupdated_byDeletedBytrait fordeleted_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!