# owen-it/laravel-auditing

Record the change log from models in Laravel

Repository: https://github.com/owen-it/laravel-auditing
Canonical: https://ross.abutalabs.com/products/laravel-auditing
Homepage: https://laravel-auditing.com
Language: PHP
License: MIT
License Family: permissive
Topics: laravel, auditing, audit, lumen, eloquent, revision, logging, record, tracking, observer, history
Last push: 2026-07-17T13:36:13+00:00

## Health v2 (maintenance only)
Score: 93/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 93, release rhythm 89, longevity 100
- inputs: {"age_days": 4031, "days_push": 47, "days_rel": 74, "gap_med": 2, "n_releases_24m": 14}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3458, forks 409 (observed 2026-08-28T04:08:05.559646+00:00)

## What it is
A Laravel/Lumen package that keeps a history of Eloquent model changes by adding a trait to models, storing audit records via configurable drivers. It exposes audited data for presentation, transformation, and tagging, helping surface discrepancies or suspect activity in data changes.

## Use cases
- track changes to eloquent models in laravel
- keep an audit log of who changed what in a laravel app
- log model update history with a trait
- record database record revisions in laravel
- audit trail for laravel models
- detect suspicious or anomalous data changes
- view history of model attribute changes
- compliance logging for php web app database changes

## When to choose
- You are building a Laravel or Lumen application and want per-model audit logs with minimal setup (just add a trait)
- You need to omit or transform sensitive attributes before they are audited
- You want audit records you can query, tag, filter, and prune automatically via a threshold

## When to avoid
- Your project does not use Laravel/Lumen or the Eloquent ORM
- You need database-level, request-level, or infrastructure audit logging beyond Eloquent model changes
- You need general application monitoring or performance logging rather than model change tracking

## Facets
- artifact type: library
- maturity: stable
- function: logging, database
- domain: web-development, backend, security, developer-tools
- platform: php
- tags: laravel, lumen, eloquent, audit-trail, model-history, change-tracking, revision-history, observers, compliance, composer-package, web-server

## Member repositories
- owen-it/laravel-auditing (main) score 93

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:05.559646+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:37:28.846490+00:00, confidence not recorded.
  - readme: https://github.com/owen-it/laravel-auditing (fetched 2026-08-28T04:08:05.559646+00:00, sha a78b5b3e4704)
  - homepage: https://laravel-auditing.com (fetched 2026-08-29T09:31:02.531778+00:00, sha fbe1cd17296b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
