NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist, #362 most downloaded on Packagist
A very simple activity logger to monitor the users of your website or application
Latest stable
5.1.5
Last release 9 days ago
13 Nov 2026
Release timing varies
gaps range from 3 weeks to 8 months
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
10 years old
133 releases · first in 2016
Drag across the ruler to compare, or tap a release to open it.
Fix buffered logging for custom activity models with renamed timestamp columns, UPDATED_AT = null , or $timestamps = false .
UPDATED_AT = null, or $timestamps = false.This release contains only the timestamp fix from #1481, backported onto 5.1.4. PHP ^8.4 and Laravel ^12.0 || ^13.0 support are unchanged. Other unreleased changes on main are not included.
Thanks to @skybleak333 for #1481.
Full changelog: 5.1.4...5.1.5
Fix buffered activities with different optional attributes failing to flush.
This is an isolated backport of #1480 onto 5.1.3. PHP ^8.4 and Laravel ^12.0 || ^13.0 support are unchanged. No public API or configuration changes are required.
This release intentionally excludes other unreleased changes on main, including its Laravel 13.32 minimum requirement and transaction-logging changes.
Validated with 192 tests (472 assertions), Pint, PHPStan, and all eight PHP 8.4/8.5 × Laravel 12/13 × lowest/stable dependency test lanes.
Thanks to @AleksandrSpicyn for #1480.
Full changelog: 5.1.3...5.1.4
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Fix eager authentication and session resolution when registering activity callbacks during application boot.
No public APIs were removed and supported PHP/Laravel versions are unchanged. The default causer is now selected when log() is called, or before a tap() callback, rather than when the logger is constructed. If authentication changes between those calls, use causedBy() to retain a specific causer.
Validated with 189 tests (467 assertions), the full eight-job dependency matrix, PHPStan, and Pint.
Thanks to @artygrand for #1477.
Full changelog: 5.1.2...5.1.3
Move the Laravel Boost activitylog reference into an on-demand activitylog-development skill, with a short guideline and a direct-file fallback when s
activitylog-development skill, with a short guideline and a direct-file fallback when skills are unavailable.No package runtime behavior or supported Laravel versions changed.
Full changelog: 5.1.1...5.1.2
Thanks to @benddailey for #1475.
Restores Laravel 12 support, which 5.1.0 dropped unintentionally.
Restores Laravel 12 support, which 5.1.0 dropped unintentionally.
Full Changelog: 5.1.0...5.1.1
Restores Laravel 12 support, which 5.1.0 dropped unintentionally.
Full Changelog: https://github.com/spatie/laravel-activitylog/compare/5.1.0...5.1.1
Bump dependabot/fetch-metadata from 2.5.0 to 3.0.0 by @dependabot [bot] in #1454
Full Changelog: 5.0.0...5.1.0
Full Changelog: https://github.com/spatie/laravel-activitylog/compare/5.0.0...5.1.0
v5: PHP 8.4+, Laravel 11+, modernized API by @freekmurze in #1452
Full Changelog: 4.12.3...5.0.0
Full Changelog: https://github.com/spatie/laravel-activitylog/compare/4.12.3...5.0.0
Fix LogOptions closure preventing model serialization in queued listeners ( #1453 ) by @morloderex
Use try/finally in withinBatch to close batch when callback throws ( #1449 ) by @isaackaara
Bump actions/stale from 9.1.0 to 10.2.0 by @dependabot [bot] in #1446
Full Changelog: 4.12.0...4.12.1
Full Changelog: https://github.com/spatie/laravel-activitylog/compare/4.12.0...4.12.1
## What's Changed - Add Laravel 13 support
Update issue template by @AlexVanderbist in https://github.com/spatie/laravel-activitylog/pull/1410
null by @rojtjo in https://github.com/spatie/laravel-activitylog/pull/1439Full Changelog: https://github.com/spatie/laravel-activitylog/compare/4.10.2...4.11.0
Update README.md by @alisalehi1380 in https://github.com/spatie/laravel-activitylog/pull/1380
Full Changelog: https://github.com/spatie/laravel-activitylog/compare/4.10.1...4.10.2
Laravel 12.x Support by @erikn69 in https://github.com/spatie/laravel-activitylog/pull/1370
Full Changelog: https://github.com/spatie/laravel-activitylog/compare/4.10.0...4.10.1
Bump stefanzweifel/git-auto-commit-action from 5.0.1 to 5.1.0 by @dependabot in https://github.com/spatie/laravel-activitylog/pull/1365
Full Changelog: https://github.com/spatie/laravel-activitylog/compare/4.9.1...4.10.0
fix: php 8.4 deprecation warnings by @ashleyshenton in https://github.com/spatie/laravel-activitylog/pull/1351
Full Changelog: https://github.com/spatie/laravel-activitylog/compare/4.9.0...4.9.1
Bump dependabot/fetch-metadata from 1.6.0 to 2.1.0 by @dependabot in https://github.com/spatie/laravel-activitylog/pull/1298
Full Changelog: https://github.com/spatie/laravel-activitylog/compare/4.8.0...4.9.0
Bump dependabot/fetch-metadata from 1.3.6 to 1.4.0 by @dependabot in https://github.com/spatie/laravel-activitylog/pull/1183
Full Changelog: https://github.com/spatie/laravel-activitylog/compare/4.7.3...4.8.0
Add Dependabot Automation by @patinthehat in https://github.com/spatie/laravel-activitylog/pull/1128
Full Changelog: https://github.com/spatie/laravel-activitylog/compare/4.7.2...4.7.3
Bump actions/checkout from 2 to 3 by @dependabot in https://github.com/spatie/laravel-activitylog/pull/1117
Full Changelog: https://github.com/spatie/laravel-activitylog/compare/4.7.1...4.7.2
Fix nullable custom properties in PHP 8.0 by @stevebauman in https://github.com/spatie/laravel-activitylog/pull/1115
Full Changelog: https://github.com/spatie/laravel-activitylog/compare/4.7.0...4.7.1
Fix indentation by @mouadziani in https://github.com/spatie/laravel-activitylog/pull/1092
Full Changelog: https://github.com/spatie/laravel-activitylog/compare/4.6.0...4.7.0
Add a default value to getExtraProperty() by @grantholle in https://github.com/spatie/laravel-activitylog/pull/1090
getExtraProperty() by @grantholle in https://github.com/spatie/laravel-activitylog/pull/1090Full Changelog: https://github.com/spatie/laravel-activitylog/compare/4.5.3...4.6.0
Fixes causer not being set on ActivityLog when using a different guard other than Laravel's default by @Gnative in https://github.com/spatie/laravel-a
Full Changelog: https://github.com/spatie/laravel-activitylog/compare/4.5.2...4.5.3
little typo on the logging-model-events.md page by @michaelbonner in https://github.com/spatie/laravel-activitylog/pull/1035
data_get() for placeholder replacement instead of Arr::get() by @stevebauman in https://github.com/spatie/laravel-activitylog/pull/1038Full Changelog: https://github.com/spatie/laravel-activitylog/compare/4.5.1...4.5.2
Use scoped instances of instead of singletons (Octane support)
Full Changelog: https://github.com/spatie/laravel-activitylog/compare/4.5.0...4.5.1
Add Conditionable trait to ActivityLogger by @usernotnull in https://github.com/spatie/laravel-activitylog/pull/997
Conditionable trait to ActivityLogger by @usernotnull in https://github.com/spatie/laravel-activitylog/pull/997Full Changelog: https://github.com/spatie/laravel-activitylog/compare/4.4.3...4.5.0
Fix model serialization when using LogsActivity with setDescriptionForEvent() by @stevebauman in https://github.com/spatie/laravel-activitylog/pull/97
LogsActivity with setDescriptionForEvent() by @stevebauman in https://github.com/spatie/laravel-activitylog/pull/977tapActivity when manually creating activity logs by @FrancisMawn in https://github.com/spatie/laravel-activitylog/pull/1031Full Changelog: https://github.com/spatie/laravel-activitylog/compare/4.4.2...4.4.3
* #1018
https://github.com/spatie/laravel-activitylog/pull/956
- allow Laravel 9
Fix hardcoded deleted_at column usage - #965
deleted_at column usage - #965Add \Spatie\Activitylog\LogOptions::useAttributeRawValues() to log uncasted attributes - #972
\Spatie\Activitylog\LogOptions::useAttributeRawValues() to log uncasted attributes - #972Add immutable_date cast support - #969
immutable_date cast support - #969Fix migration stub names - #914
Add \Spatie\Activitylog\LogBatch::setBatch(string $uuid) method to keep batches across requests or multiple jobs - #918
\Spatie\Activitylog\LogBatch::setBatch(string $uuid) method to keep batches across requests or multiple jobs - #918PR: #787 Special thanks to Ahmed Nagi.
PR: #787
Special thanks to Ahmed Nagi.
LogOptions configuration object to replace all configuration properties.CauserResolver to define causer for current runtime #582.fix \AddEventColumnToActivityLogTable::down()
\AddEventColumnToActivityLogTable::down()add \Spatie\Activitylog\ActivityLogger::event() method and column #702
\Spatie\Activitylog\ActivityLogger::event() method and column #702- drop PHP 7.2 support - #855
- add PHP8 support - #806
use nullableMorphs() in default migration - #707
Add multiple/chained relation attribute logging support - #784
- Add support for Laravel 8
- fix retrieved event logging
retrieved event loggingrevert breaking changes in v3.14.0
v3.14.0Please use v3.14.1 instead - this release is breaking because of the new column. There is also a v4.0.0-rc.1 release that equals to this one.
Please use v3.14.1 instead - this release is breaking because of the new column. There is also a v4.0.0-rc.1 release that equals to this one.
\Spatie\Activitylog\ActivityLogger::event() method and column #702add \Spatie\Activitylog\ActivityLogger::withoutLogs() method #695
\Spatie\Activitylog\ActivityLogger::withoutLogs() method #695- respect custom date casts #627
remove spatie/string dependency #690
spatie/string dependency #690fix performance issue around global vs model log disabling #682
fix Laravel 7 array/json casted attributes #680
- fix requirements
- add support for Laravel 7
add ability to manually set created at date - #622
- drop support for Laravel 5
fix default database connection - #616
add anonymous causer with null value - #605
change fields with value null to be strictly compared when logging dirty fields
null to be strictly compared when logging dirty fields (#453)- do not export docs folder
One column per quarter.