Skip to content

laravel-enso/track-who

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

122 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

Laravel Traits for tracking who's done what to your models

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages