Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Authored Laravel Package

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.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs. buy for audit attribution: 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?
  • Roadmap scoping for compliance and accountability features: If the roadmap includes "who changed this record," internal audit trails, or customer-facing activity history, this package defines the minimum viable version of that capability. It is a useful reference point for estimating the cheap end of the effort, not the full audit-log feature (it stores current authorship, not a change history).
  • Feature prioritization against richer alternatives: Because it only persists the latest editor, it helps you draw the line between "attribution" (cheap, this package) and "audit trail / change history" (materially more work — 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.
  • Use cases where it fits cleanly: Internal admin panels and back-office tools where support staff need to see who created or last touched a record; multi-tenant SaaS where per-record ownership matters for support escalation; lightweight governance in CRMs, ticketing, and content tools.
  • Use cases it does not support: Regulatory audit (SOC 2, HIPAA, GDPR erasure tracing), immutable logs, before/after diffs, or anything requiring retention of every change. Do not let a demo of this package set stakeholder expectations for "audit logging."
  • Dependency and risk posture: 4 stars, 0 dependents, and a low composite score mean this is an unproven dependency. For a team with PHP capacity, the correct product call is likely "build in-house" — the behavior is small, testable, and low-churn, whereas an external dependency adds supply-chain and maintenance surface for negligible savings.

When to Consider This Package

Adopt (or, more realistically, evaluate) when all of the following hold:

  • You need only current authorship stamps (created_by, updated_by) — not a change history, diffs, or immutable records.
  • You are on a Laravel version compatible with the package's composer constraints (verify the illuminate/* and PHP version ranges before committing; the 2025-05-16 release is recent but the project shows no ecosystem traction).
  • The team has reviewed the source and tests directly — at 4 stars and 0 dependents, there is effectively no community vetting, so due diligence is on you.
  • You are willing to fork and vendor it, or accept single-maintainer risk with a documented exit plan. For most teams this should be framed as "copy the pattern," not "install the package."

Look elsewhere — or build — when:

  • You need full audit trails: use owen-it/laravel-auditing (mature, widely adopted) or spatie/laravel-activitylog (broad adoption, active maintenance).
  • You need authorship for API/queue/service contexts where auth()->id() is absent — verify it handles unauthenticated writes, console commands, and jobs gracefully, or you will get nulls and silent gaps.
  • You have compliance or retention requirements; a package with no dependents is not defensible in a vendor-risk review.
  • You need soft-delete awareness, impersonation tracking, or polymorphic actor types (user vs. service account) — none of which this package advertises.
  • Your team already has a base model or trait layer; adding a third-party trait for this is architectural noise.

How to Pitch It (Stakeholders)

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.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
xiloryx/log-collector
a21ns1g4ts/filament-stripe
la-php/laravel-admin
artisan-build/community-prompts
vleroy/smart
ayles-software/laravel-australian-public-holidays
cboxdk/laravel-id-spatie
cboxdk/laravel-id-billing
cboxdk/laravel-id-billing-bridge
simple-as-fuck/php-performance-log
hsluv/hsluv
seampact/codegen
seampact/hooks
seampact/ir
mehedimi/laravel-amp-mail
happones/laravel-vue-i18n-generator
jwerd/inertia-table
siberfx/flysystem-wasabi
hollyit/token-replace
ippanelcom/laravel-sdk