Weave Code
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 Activitylog Laravel Package

spatie/laravel-activitylog

Log user and model activity in Laravel with a simple API. Automatically record Eloquent events, track subjects and causers, attach custom properties, and query everything via the Activity model. Stores logs in the activity_log table.

View on GitHub
Deep Wiki
Context7
4.12.3

What's Changed

  • Fix LogOptions closure preventing model serialization in queued listeners (#1453) by @morloderex
4.12.2

What's Changed

  • Use try/finally in withinBatch to close batch when callback throws (#1449) by @isaackaara
4.12.1

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-activitylog/compare/4.12.0...4.12.1

4.12.0

What's Changed

  • Add Laravel 13 support
4.11.0

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-activitylog/compare/4.10.2...4.11.0

4.10.2

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-activitylog/compare/4.10.1...4.10.2

4.10.0

What's Changed

Full Changelog: https://github.com/spatie/laravel-activitylog/compare/4.9.1...4.10.0

4.9.0

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-activitylog/compare/4.8.0...4.9.0

4.8.0

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-activitylog/compare/4.7.3...4.8.0

v4.7.2
v4.7.1
v4.6.0

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-activitylog/compare/4.5.3...4.6.0

4.5.3
  • Fix default auth guard for causer - #1053
4.5.2
  • Fix placeholder resolving - #1038
4.5.0
4.4.3
4.4.2
4.4.0
  • allow Laravel 9
4.3.1
  • Fix hardcoded deleted_at column usage - #965
4.3.0
  • Add \Spatie\Activitylog\LogOptions::useAttributeRawValues() to log uncasted attributes - #972
4.2.0
  • Add immutable_date cast support - #969
4.1.1
  • Fix migration stub names - #914
4.1.0
  • Add \Spatie\Activitylog\LogBatch::setBatch(string $uuid) method to keep batches across requests or multiple jobs - #918
4.0.0

PR: #787 Special thanks to Ahmed Nagi.

  • Drop Laravel 6 and 7 support.

  • Drop PHP 7.x support.

  • Add LogOptions configuration object to replace all configuration properties.

  • Add ability to batch activity logs #560

  • Add Pipeline to customize logged changes data.

    • Deep diff array/JSON sub-keys and respect for only-dirty, no-empty ... #692 using new pipeline. See implementation in the tests.
  • Implement a CauserResolver to define causer for current runtime #582.

3.17.0
  • drop PHP 7.2 support - #855
3.16.1
  • add PHP 8.0 support - #806
3.16.0
  • use nullableMorphs() in default migration - #707
  • add support for snake and camel cased related model attribute logging - #721
3.15.0
  • Add multiple/chained relation attribute logging support - #784
3.14.3
  • Add support for Laravel 8
3.14.2
  • fix retrieved event logging
3.14.1
  • revert breaking changes in v3.14.0
3.14.0

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.

  • add \Spatie\Activitylog\ActivityLogger::event() method and column #702
3.13.0
  • add \Spatie\Activitylog\ActivityLogger::withoutLogs() method #695
3.12.0
  • respect custom date casts #627
3.11.4
  • remove spatie/string dependency #690
3.11.3
  • fix performance issue around global vs model log disabling #682
3.11.2
  • fix Laravel 7 array/json casted attributes #680
3.11.1
  • fix requirements
3.11.0
  • add support for Laravel 7
3.10.0
  • add ability to manually set created at date - #622
3.9.2
  • drop support for Laravel 5
3.9.1
  • fix default database connection - #616
3.9.0
  • add anonymous causer with null value - #605
  • fix relationships to allow snake case keys - #602
  • add JOSN sub-key attribute logging - #601
3.8.0
  • add support for Laravel 6
  • change fields with value null to be strictly compared when logging dirty fields #453
  • add composite indexes for subject and causer to migration
3.7.2
  • do not export docs folder
3.7.1
  • fix default database connection env var
3.7.0
  • add database connection to configuration activitylog.database_connection and ACTIVITY_LOGGER_DB_CONNECTION env var #568
3.6.3
  • fix deprecated array_ helper #569
3.6.2
  • fix existing description #563
3.6.1
  • fix nullable date attributes #546
3.6.0
  • update properties column type from text to json #525
  • update subject_id and causer_id column type from integer to big_integer and unsigned #527
  • fix attribute getter support in DetectsChanges trait #534
  • fix old attributes retrieval in DetectsChanges trait #537
  • clean up old attributes in DetectsChanges trait #538
3.5.0
  • add days option to clean command #497
  • add LogsActivity::$submitEmptyLogs #514
3.4.0
  • use Illuminate\Contracts\Config\Repository instead of Illuminate\Config\Repository #505
  • fix logChanges() #512
3.3.0
  • drop support for Laravel 5.7 and lower
  • drop support for PHP 7.1 and lower
3.2.2
  • add support for Laravel 5.8
  • fix logging hidden attributes
  • fix logging for a causer model without a provider
  • add code coverage reporting for repository
3.2.1
  • use Str:: and Arr:: instead of helper methods
3.2.0
  • add ActivityLogger::tap() method
  • add LogsActivity::tapActivity() method
  • the ActivityLogger will work on an activity model instance instead of cache variables
3.1.2
  • add shouldLogUnguarded() method
  • fix typo in methodname shouldLogOnlyDirty()
3.1.1
  • fix $logUnguarded
3.1.0
  • add $logUnguarded
3.0.0
  • the preferred way to get changes on an Activity model is through the changes property instead of the changes() function
  • the activity relation of the CausesActivity trait has been renamed to actions
  • the activity relation of the LogsActivity trait has been renamed to activities
  • the deprecated loggedActivity relation has been removed
  • the HasActivity trait has been removed.
  • fix for setting a custom table name for the Activity model via the $table property
  • support for PHP 7.0 has been dropped
2.8.4.
  • improve migration
2.8.3
  • add support for L5.7
2.8.2
  • allow null to be passed to causedBy
2.8.1
  • make sure a fresh instance of ActivityLogger is used
2.8.0
  • add enableLogging() and disableLogging()
2.7.0
  • add ability to ignore changes to attributes specified in $logAttributesToIgnore
2.6.0
  • add table_name config option
2.5.1
  • improve support for soft deletes
2.5.0
  • allow model to override the default log name
2.4.2
  • add compatibility with L5.6
2.4.1
  • use a text column for description
2.4.0
  • add HasActivity
2.3.2
  • fix bugs concerning attributesToBeLogged
2.3.1
  • allow nullable relation when using logChanges
2.3.0
  • add a log argument to activitylog:clean
2.2.0
  • add support for logging all changed attributes using *
2.1.2
  • fix for logging changes attributes when deleting soft deletable models
2.1.0
  • added support for logging fillable attributes
2.1.1
  • make sure properties always is a collection
2.0.0
  • added support for Laravel 5.5, dropped support for older laravel versions
  • renamed config file from laravel-activitylog to activitylog
  • rename getChangesAttribute function to changes so it doesn't conflict with Laravel's native functionality
1.15.5
  • fix model scope
1.15.4
  • fix detecting SoftDeletes
1.16.0
  • added enableLogging and disableLogging
1.15.3
  • fix for when there is no 'web' guard
1.15.2
  • fixes errors in DetectsChanges
1.15.1
  • fixes error in DetectsChanges
1.15.0
  • add compatibility with L5.1 and L5.2
1.14.0
  • add support array/collection casted attributes when using logDirtyOnly
1.13.0
  • add logDirtyOnly
1.12.2
  • fix a bug where changes to a related model would not be logged
1.12.1
  • avoid PHP error when dealing with placeholders that cannot be filled
1.12.0
  • drop support for L5.2 and lower
  • add ability to log attributes of related models
1.11.0
  • add support for L5.4
1.10.4
  • Activity now extends from Model instead of Eloquent
1.10.2
  • fix compatibilty for Laravel 5.1
1.10.1
  • fix scopeCausedBy and scopeForSubject
1.10.0
  • add support for restored event
1.9.2
  • fixed a bug where the delete event would not be logged
1.9.1
  • fixed the return value of activity()->log(). It will now return the created Activity-model.
1.9.0
  • added Macroable to ActivityLogger
1.8.0
  • added causedBy and forSubject scopes
1.7.1
  • Added L5.3 compatibility
1.7.0
  • Added enabled option in the config file.
1.6.0
  • Added ignoreChangedAttributes
1.5.0
  • Added support for using a custom Activity model
1.4.0
  • Added support for soft deletes
1.3.2
  • This version replaces version 1.3.0
  • Dropped L5.1 compatibility
1.3.1
  • this version removes the features introduced in 1.3.0 and is compatible with L5.1
1.3.0
  • made the auth driver configurable
1.2.1
  • use config repo contract
1.2.0
  • added getLogNameToUse
1.1.0
  • added activity-method on both the CausesActivity and LogsActivity-trait
1.0.3
  • the package is now compatible with Laravel 5.1
1.0.2
  • fixed naming of inLog scope
  • add inLog function alias
1.0.1
  • fixed error when publishing migrations
1.0.0
  • initial release
What's
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.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport