awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
spatie avatar

spatie/laravel-activitylog

0
View on GitHub↗
5,850 stars·745 forks·PHP·MIT·11 viewsdocs.spatie.be/laravel-activitylog↗

Laravel Activitylog

This is a Laravel package that provides a database audit trail by automatically logging user actions and Eloquent model events. It records create, update, and delete operations on models into a dedicated database table, creating a searchable record of changes for tracking and review.

The package distinguishes itself through extensive configuration and customization options. You can control which model attributes are logged, specify which events trigger logging, customize activity descriptions, and modify activity records before they are saved. It supports logging changes to pivot models, tracking attributes from related models using dot notation, and monitoring specific sub-keys within JSON columns. Batch logging groups related activities into single entries, and event-based filtering allows conditional inclusion or exclusion of activities based on runtime logic.

Additional capabilities include query scopes for filtering logs by subject model, causing user, or event type, automatic resolution of the authenticated user as the causer, and the ability to temporarily disable logging for specific model instances or suppress empty logs when no attributes have changed. The package is installed as a Composer dependency and integrates with Laravel's service container and configuration system.

Features

  • Activity Logging Packages - Records user actions and model events into a database table for auditing within Laravel applications.
  • User Activity Logs - Records user actions and model events into a database table for auditing and review.
  • Laravel Audit Log Packages - Logs user actions and model events into a database table for tracking and review within Laravel applications.
  • Database Change Tracking - Automatically logs create, update, and delete events on Eloquent models with configurable attributes.
  • Eloquent Model Event Listeners - Hooks into Laravel's Eloquent model lifecycle events to automatically capture and log changes to database records.
  • Eloquent Model Subjects - Provides the ability to associate any Eloquent model as the subject of an activity log entry.
  • Database Audit Trails - Stores activity logs in a dedicated database table with query scopes for filtering.
  • Selective Attribute Logging - Ships configuration options to selectively log model attributes, relations, and custom properties.
  • User Action Audit Trackers - Captures user-initiated activities such as logins and custom actions for audit trails.
  • Model Attribute Selection - Allows selecting which model attributes to track using fillable, guarded, or explicit lists.
  • Authorization Event Loggers - Records create, update, and delete events on Eloquent models with configurable attributes and context.
  • Eloquent Model Event Loggers - Automatically logs create, update, and delete events on Eloquent models with configurable attributes.
  • User Action Audit Logging - Captures user-initiated activities such as logins and custom actions for audit trails.
  • Activity Log Database Drivers - Stores activity logs in a dedicated database table using Laravel's query builder and schema migration system.
  • Eloquent Model Event Loggers - Automatically logs create, update, and delete events on Eloquent models with configurable attributes.
  • Log Event Filters - Provides mechanisms to specify which model events trigger an activity log entry.
  • Attribute Filtering - Allows selective inclusion or exclusion of model attributes from logs using fillable, guarded, or explicit property lists.
  • Activity Description Customizers - Replaces default event names with custom text for each logged model event.
  • JSON Sub-key Tracking - Tracks changes to specific sub-keys inside JSON columns using arrow notation.
  • Activity Log Batchers - Groups multiple related activities into a single log entry to reduce storage overhead and improve query performance.
  • Activity Log - Offers pre-built query scopes to filter activity logs by subject model, causing user, or event type for efficient retrieval.
  • Pivot Model Loggers - Records activity on pivot models by adding a primary key and using a logging trait.
  • JSON Sub-key Change Trackers - Monitors changes to specific sub-keys inside JSON columns using arrow notation for granular change detection.
  • Related Model Attribute Loggers - Includes attributes from directly related models in the activity log using dot notation.
  • Pre-Save Activity Modifiers - Fills custom properties on the activity record just before it is saved to the database.
  • Activity Causer Resolvers - Automatically resolves the authenticated user or system process responsible for each logged activity.
  • Attribute Exclusions - Provides the ability to exclude specified attributes from activity log entries.
  • Activity Log Query Engines - Filters activity records by subject model, causing user, or event type using provided query scopes.
  • Empty Log Suppression - Prevents saving activity log entries when no tracked attributes have changed.
  • Per-Instance Log Suppression - Allows temporarily preventing a specific model instance from generating activity logs.
  • General Utilities - Logs user activity within the application.

Star history

Star history chart for spatie/laravel-activitylogStar history chart for spatie/laravel-activitylog

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Frequently asked questions

What does spatie/laravel-activitylog do?

This is a Laravel package that provides a database audit trail by automatically logging user actions and Eloquent model events. It records create, update, and delete operations on models into a dedicated database table, creating a searchable record of changes for tracking and review.

What are the main features of spatie/laravel-activitylog?

The main features of spatie/laravel-activitylog are: Activity Logging Packages, User Activity Logs, Laravel Audit Log Packages, Database Change Tracking, Eloquent Model Event Listeners, Eloquent Model Subjects, Database Audit Trails, Selective Attribute Logging.

What are some open-source alternatives to spatie/laravel-activitylog?

Open-source alternatives to spatie/laravel-activitylog include: collectiveidea/audited — Audited is a Ruby on Rails audit log library and change data capture framework. It tracks model changes by recording… paper-trail-gem/paper_trail — PaperTrail is a Ruby on Rails versioning library and database audit trail system. It tracks changes to database models… thinkgem/jeesite — Jeesite is a full-stack low-code development framework designed for building enterprise administrative portals using… 1024-lab/smart-admin — Smart-admin is a full-stack development platform and administrative framework combining a SpringBoot backend with a… openblocks-dev/openblocks — Openblocks is a low-code platform for building custom internal tools. It provides a visual interface where users can… day8/re-frame — re-frame is a functional framework for building single-page applications in ClojureScript. It provides a centralized,…

Open-source alternatives to Laravel Activitylog

Similar open-source projects, ranked by how many features they share with Laravel Activitylog.
  • collectiveidea/auditedcollectiveidea avatar

    collectiveidea/audited

    3,491View on GitHub↗

    Audited is a Ruby on Rails audit log library and change data capture framework. It tracks model changes by recording previous and current attribute values during create, update, and destroy operations to maintain a complete history of database modifications. The system functions as a database versioning tool and user activity tracker. It allows for the retrieval of historical record states by timestamp or index, enables reverting models to previous versions, and associates record modifications with specific user identities and remote IP addresses. The library includes capabilities for sensit

    Rubyactiverecordauditaudit-log
    View on GitHub↗3,491
  • paper-trail-gem/paper_trailpaper-trail-gem avatar

    paper-trail-gem/paper_trail

    7,022View on GitHub↗

    PaperTrail is a Ruby on Rails versioning library and database audit trail system. It tracks changes to database models by capturing historical snapshots of object states and associating every modification with the specific user or process responsible for the update. The project provides a model state reification tool to reconstruct model instances as they existed at a specific point in time and a data recovery framework to restore deleted database records by reifying their last known version. The system covers a broad range of capabilities including version history navigation, changeset-base

    Rubyactiverecordauditlog
    View on GitHub↗7,022
  • openblocks-dev/openblocksopenblocks-dev avatar

    openblocks-dev/openblocks

    6,220View on GitHub↗

    Openblocks is a low-code platform for building custom internal tools. It provides a visual interface where users can assemble applications by dragging and dropping pre-built components onto a canvas, connecting them to databases and APIs without writing code. The platform distinguishes itself through its architecture for embedding and reuse. Entire application pages can be rendered as native React components inside other applications, replacing traditional iframe-based embedding. Custom components and queries can be bundled into reusable modules for use across multiple applications, and an au

    TypeScriptadmin-dashboardapp-builderapp-development
    View on GitHub↗6,220
  • 1024-lab/smart-admin1024-lab avatar

    1024-lab/smart-admin

    3,743View on GitHub↗

    Smart-admin is a full-stack development platform and administrative framework combining a SpringBoot backend with a Vue frontend. It provides standardized scaffolding for building enterprise admin dashboards and management systems. The project distinguishes itself with low-code capabilities, featuring a code generator that automatically produces backend and frontend source code from database table configurations. It incorporates a dedicated security layer for encrypting and decrypting API request and response bodies to protect data in transit. The framework covers comprehensive identity and

    Javaant-design-vuecodegeneratorcomposition-api
    View on GitHub↗3,743
  • See all 30 alternatives to Laravel Activitylog→