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 Model Activity Log Laravel Package

foxen/laravel-model-activity-log

Automatically log Eloquent model activity in Laravel: create, update (with attribute diffs), delete, and restore (SoftDeletes). Supports per-model log names, ignoring or redacting attributes, tracks the authenticated user or falls back to “System”, and can prune old entries.

View on GitHub
Deep Wiki
Context7
v1.0.0

What's New

Initial release of Laravel Model Activity Log.

Features

  • Automatic logging of created, updated, deleted, and restored (SoftDeletes) events on Eloquent models
  • Tracks the authenticated user as the causer; attributes unauthenticated actions to System
  • Stores old/new attribute values for updated events
  • Per-model attribute ignoring and redacting, with global redact config
  • Polymorphic subject() and causer() relationships on the Activity model
  • Convenient query scopes: whereSubject, forSubjectType, whereCauser, forCauserType, forEvent
  • Automatic pruning of old log entries via model:prune
  • Configurable table name, log name, and prune settings
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.
se7enxweb/flysystem
lampwick/laravel
jeslage/statamic-emojis
micahdshackelford/rmap-laravel
draftsmaninc/draftsman
square-bit/laravel-volition
himito/laravel-mailman
htinlynn/genius-helper
maco-studios/hephaestus
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log