rulr/laravel-authored
A small Laravel package for recording and querying authorship on your models, so you can see who created or changed a record. Simple traits and helpers keep attribution consistent across your app without extra tables or boilerplate.
laravel-authored solves a narrow, well-understood slice of auditability — stamping created_by / updated_by on Eloquent models via a trait and a schema macro. This is the decision the package most directly informs: do we adopt a dependency for ~50–100 lines of straightforward Eloquent behavior, or do we own it internally?owen-it/laravel-auditing, spatie/laravel-activitylog, or a custom event-sourced approach). That distinction should drive whether audit work lands in this quarter or next.Adopt (or, more realistically, evaluate) when all of the following hold:
created_by, updated_by) — not a change history, diffs, or immutable records.illuminate/* and PHP version ranges before committing; the 2025-05-16 release is recent but the project shows no ecosystem traction).Look elsewhere — or build — when:
owen-it/laravel-auditing (mature, widely adopted) or spatie/laravel-activitylog (broad adoption, active maintenance).auth()->id() is absent — verify it handles unauthenticated writes, console commands, and jobs gracefully, or you will get nulls and silent gaps.To executives (one paragraph): We evaluated a small open-source package that automatically records which user created or last updated a database record. The capability is genuinely useful for internal accountability — support and ops teams can see ownership without us building custom tooling. However, the package has essentially no adoption (single-digit stars, zero dependent projects), which means no community vetting and meaningful maintenance risk. The underlying behavior is small enough that owning it internally costs roughly a day of engineering, removes the dependency entirely, and gives us full control. My recommendation is to treat this package as a design reference rather than a dependency: adopt the pattern, not the library. If the real requirement is a full audit trail for compliance, that is a separate and substantially larger initiative, and we should scope it deliberately rather than inferring it from this package.
To engineering (brief): It's a trait plus a schema macro that stamps created_by / updated_by from the authenticated user on Eloquent save. Trivial surface, MIT licensed, recent release, but no dependents and no ecosystem signal. Before any consideration: confirm Laravel/PHP version compatibility, confirm behavior for unauthenticated and queued writes, and confirm test coverage. Recommended path is a ~50-line internal trait mirroring the same API, with tests. If we do adopt, vendor or fork it and pin the version.
How can I help you explore Laravel packages today?