# spatie/laravel-activitylog

Log activity inside your Laravel app

Repository: https://github.com/spatie/laravel-activitylog
Canonical: https://ross.abutalabs.com/products/laravel-activitylog
Homepage: https://docs.spatie.be/laravel-activitylog
Language: PHP
License: MIT
License Family: permissive
Topics: laravel, php, log, audit, monitoring
Last push: 2026-08-12T12:08:09+00:00

## Health v2 (maintenance only)
Score: 98/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 97, release rhythm 97, longevity 100
- inputs: {"age_days": 3723, "days_push": 21, "days_rel": 21, "gap_med": 30, "n_releases_24m": 12}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5893, forks 744 (observed 2026-08-28T04:09:32.014673+00:00)

## What it is
A Laravel package that provides easy-to-use functions to log user activity in a Laravel application, storing everything in an activity_log table. It can automatically log Eloquent model events and record attribute changes.

## Use cases
- log user activity in a laravel app
- automatically log eloquent model changes
- build an audit trail of who changed what
- track attribute changes on models
- record which user performed an action on a model

## When to choose
- you need a ready-made activity/audit log for a Laravel app
- you want automatic logging of model create/update/delete events
- you need to associate activities with the user who caused them

## When to avoid
- you are not using Laravel
- you need general application logging rather than user/model activity tracking
- you need log aggregation or shipping to external systems

## Facets
- artifact type: library
- maturity: stable
- function: logging, monitoring
- domain: web-development, backend, developer-tools
- platform: php
- tags: laravel-package, audit-trail, eloquent, activity-log, model-events, spatie, laravel

## Member repositories
- spatie/laravel-activitylog (main) score 98

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:32.014673+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-29T17:51:32.497183+00:00, confidence not recorded.
  - readme: https://github.com/spatie/laravel-activitylog (fetched 2026-08-28T04:09:32.014673+00:00, sha e7ec93d7ff1d)
- Data as of 2026-08-30T08:39:29.467469+00:00.
