All notable changes to spatie/laravel-activitylog will be documented in this file
- Bump dependabot/fetch-metadata from 1.3.6 to 1.4.0 by @dependabot in spatie#1183
- Bump dependabot/fetch-metadata from 1.4.0 to 1.5.0 by @dependabot in spatie#1195
- Bump dependabot/fetch-metadata from 1.5.0 to 1.5.1 by @dependabot in spatie#1196
- Bump dependabot/fetch-metadata from 1.5.1 to 1.6.0 by @dependabot in spatie#1205
- Add a missing apostrophe by @dwightwatson in spatie#1249
- Bump actions/stale from 6.0.1 to 9.0.0 by @dependabot in spatie#1250
- Bump actions/cache from 3 to 4 by @dependabot in spatie#1263
- Add more detail to manipulating changes by @tonypartridge in spatie#1268
- feat!: add laravel 11 support by @StevePorter92 in spatie#1276
- @dwightwatson made their first contribution in spatie#1249
- @tonypartridge made their first contribution in spatie#1268
- @StevePorter92 made their first contribution in spatie#1276
Full Changelog: https://github.com/spatie/laravel-activitylog/compare/4.7.3...4.8.0
- Add Dependabot Automation by @patinthehat in spatie#1128
- Add PHP 8.2 Support by @patinthehat in spatie#1129
- Bump dependabot/fetch-metadata from 1.3.5 to 1.3.6 by @dependabot in spatie#1156
- Fix tests badge by @erikn69 in spatie#1153
- Laravel 10.x support by @erikn69 in spatie#1152
- Fix for replacePlaceholders with ending dot by @Stefan-Dressler in spatie#1154
- @patinthehat made their first contribution in spatie#1128
- @erikn69 made their first contribution in spatie#1153
- @Stefan-Dressler made their first contribution in spatie#1154
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 spatie#1117
- Bump actions/stale from 2.0.0 to 6.0.1 by @dependabot in spatie#1118
- Bump stefanzweifel/git-auto-commit-action from 4.0.0 to 4.15.4 by @dependabot in spatie#1119
- Add missing properties to Activity model by @AndreasHerss in spatie#1101
- Bump actions/cache from 2 to 3 by @dependabot in spatie#1120
- Fix enum casting by @Gummibeer in spatie#1121
- @dependabot made their first contribution in spatie#1117
- @AndreasHerss made their first contribution in spatie#1101
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 spatie#1115
Full Changelog: https://github.com/spatie/laravel-activitylog/compare/4.7.0...4.7.1
- Fix indentation by @mouadziani in spatie#1092
- Support non backed enum & php 8.1 by @pemudakoding in spatie#1110
- @mouadziani made their first contribution in spatie#1092
- @pemudakoding made their first contribution in spatie#1110
Full Changelog: https://github.com/spatie/laravel-activitylog/compare/4.6.0...4.7.0
- Add a default value to
getExtraProperty()by @grantholle in spatie#1090
- @grantholle made their first contribution in spatie#1090
Full Changelog: https://github.com/spatie/laravel-activitylog/compare/4.5.3...4.6.0
- Fix default auth guard for causer - #1053
- Fix placeholder resolving - #1038
Full Changelog: https://github.com/spatie/laravel-activitylog/compare/4.5.0...4.5.1
- Add
Conditionabletrait toActivityLoggerby @usernotnull in spatie#997
- @usernotnull made their first contribution in spatie#997
Full Changelog: https://github.com/spatie/laravel-activitylog/compare/4.4.3...4.5.0
- Fix model serialization when using
LogsActivitywithsetDescriptionForEvent()by @stevebauman in spatie#977 - Fix activirt logging on model restore (#895) by @kryptamine in spatie#1000
- Fix nullable log names by @stevebauman in spatie#1029
- Fix
tapActivitywhen manually creating activity logs by @FrancisMawn in spatie#1031
- @stevebauman made their first contribution in spatie#977
- @kryptamine made their first contribution in spatie#1000
- @FrancisMawn made their first contribution in spatie#1031
Full Changelog: https://github.com/spatie/laravel-activitylog/compare/4.4.2...4.4.3
- allow Laravel 9
- Fix hardcoded
deleted_atcolumn usage - #965
- Add
\Spatie\Activitylog\LogOptions::useAttributeRawValues()to log uncasted attributes - #972
- Add
immutable_datecast support - #969
- Fix migration stub names - #914
- Add
\Spatie\Activitylog\LogBatch::setBatch(string $uuid)method to keep batches across requests or multiple jobs - #918
PR: #787 Special thanks to Ahmed Nagi.
-
Drop Laravel 6 and 7 support.
-
Drop PHP 7.x support.
-
Add
LogOptionsconfiguration 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
CauserResolverto define causer for current runtime #582.
- drop PHP 7.2 support - #855
- add PHP 8.0 support - #806
- use
nullableMorphs()in default migration - #707 - add support for snake and camel cased related model attribute logging - #721
- Add multiple/chained relation attribute logging support - #784
- Add support for Laravel 8
- fix
retrievedevent logging
- revert breaking changes in
v3.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
- add
\Spatie\Activitylog\ActivityLogger::withoutLogs()method #695
- respect custom date casts #627
- remove
spatie/stringdependency #690
- fix 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
nullvalue - #605 - fix relationships to allow snake case keys - #602
- add JOSN sub-key attribute logging - #601
- add support for Laravel 6
- change fields with value
nullto be strictly compared when logging dirty fields #453 - add composite indexes for subject and causer to migration
- do not export docs folder
- fix default database connection env var
- add database connection to configuration
activitylog.database_connectionandACTIVITY_LOGGER_DB_CONNECTIONenv var #568
- fix deprecated
array_helper #569
- fix existing description #563
- fix nullable date attributes #546
- update
propertiescolumn type fromtexttojson#525 - update
subject_idandcauser_idcolumn type fromintegertobig_integerandunsigned#527 - fix attribute getter support in
DetectsChangestrait #534 - fix old attributes retrieval in
DetectsChangestrait #537 - clean up old attributes in
DetectsChangestrait #538
- use
Illuminate\Contracts\Config\Repositoryinstead ofIlluminate\Config\Repository#505 - fix
logChanges()#512
- drop support for Laravel 5.7 and lower
- drop support for PHP 7.1 and lower
- 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
- use Str:: and Arr:: instead of helper methods
- add
ActivityLogger::tap()method - add
LogsActivity::tapActivity()method - the
ActivityLoggerwill work on an activity model instance instead of cache variables
- add
shouldLogUnguarded()method - fix typo in methodname
shouldLogOnlyDirty()
- fix
$logUnguarded
- add
$logUnguarded
- the preferred way to get changes on an
Activitymodel is through thechangesproperty instead of thechanges()function - the
activityrelation of theCausesActivitytrait has been renamed toactions - the
activityrelation of theLogsActivitytrait has been renamed toactivities - the deprecated
loggedActivityrelation has been removed - the
HasActivitytrait has been removed. - fix for setting a custom table name for the
Activitymodel via the$tableproperty - support for PHP 7.0 has been dropped
- improve migration
- add support for L5.7
- allow
nullto be passed tocausedBy
- make sure a fresh instance of
ActivityLoggeris used
- add
enableLogging()anddisableLogging()
- add ability to ignore changes to attributes specified in
$logAttributesToIgnore
- add
table_nameconfig option
- improve support for soft deletes
- allow model to override the default log name
- add compatibility with L5.6
- use a
textcolumn fordescription
- add
HasActivity
- fix bugs concerning
attributesToBeLogged
- allow nullable relation when using
logChanges
- add a
logargument toactivitylog:clean
- add support for logging all changed attributes using
*
- fix for logging changes attributes when deleting soft deletable models
- make sure
propertiesalways is a collection
- added support for logging fillable attributes
- added support for Laravel 5.5, dropped support for older laravel versions
- renamed config file from
laravel-activitylogtoactivitylog - rename
getChangesAttributefunction tochangesso it doesn't conflict with Laravel's native functionality
- added
enableLogginganddisableLogging
- fix model scope
- fix detecting
SoftDeletes
- fix for when there is no 'web' guard
- fixes errors in
DetectsChanges
- fixes error in
DetectsChanges
- add compatibility with L5.1 and L5.2
- add support array/collection casted attributes when using
logDirtyOnly
- add
logDirtyOnly
- fix a bug where changes to a related model would not be logged
- avoid PHP error when dealing with placeholders that cannot be filled
- drop support for L5.2 and lower
- add ability to log attributes of related models
- add support for L5.4
Activitynow extends fromModelinstead ofEloquent
- fix compatibilty for Laravel 5.1
- fix
scopeCausedByandscopeForSubject
- add support for
restoredevent
- fixed a bug where the delete event would not be logged
- fixed the return value of
activity()->log(). It will now return the createdActivity-model.
- added
MacroabletoActivityLogger
- added
causedByandforSubjectscopes
- Added L5.3 compatibility
- Added
enabledoption in the config file.
- Added
ignoreChangedAttributes
- Added support for using a custom
Activitymodel
- Added support for soft deletes
- This version replaces version
1.3.0 - Dropped L5.1 compatibility
- this version removes the features introduced in 1.3.0 and is compatible with L5.1
DO NOT USE THIS VERSION IF YOU'RE ON L5.1
Please upgrade to:
1.3.1for Laravel 5.11.3.2for Laravel 5.2 and higher
Introduced features
- made the auth driver configurable
- made the auth driver configurable
- use config repo contract
- added
getLogNameToUse
- added
activity-method on both theCausesActivityandLogsActivity-trait
- the package is now compatible with Laravel 5.1
- fixed naming of
inLogscope - add
inLogfunction alias
- fixed error when publishing migrations
- initial release