All notable changes to spatie/laravel-activitylog
will be documented in this file
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.
- 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
retrieved
event 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/string
dependency #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
null
value - #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
null
to 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_connection
andACTIVITY_LOGGER_DB_CONNECTION
env var #568
- fix deprecated
array_
helper #569
- fix existing description #563
- fix nullable date attributes #546
- update
properties
column type fromtext
tojson
#525 - update
subject_id
andcauser_id
column type frominteger
tobig_integer
andunsigned
#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
- use
Illuminate\Contracts\Config\Repository
instead 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
ActivityLogger
will 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
Activity
model is through thechanges
property instead of thechanges()
function - the
activity
relation of theCausesActivity
trait has been renamed toactions
- the
activity
relation of theLogsActivity
trait has been renamed toactivities
- 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
- improve migration
- add support for L5.7
- allow
null
to be passed tocausedBy
- make sure a fresh instance of
ActivityLogger
is used
- add
enableLogging()
anddisableLogging()
- add ability to ignore changes to attributes specified in
$logAttributesToIgnore
- add
table_name
config option
- improve support for soft deletes
- allow model to override the default log name
- add compatibility with L5.6
- use a
text
column fordescription
- add
HasActivity
- fix bugs concerning
attributesToBeLogged
- allow nullable relation when using
logChanges
- add a
log
argument toactivitylog:clean
- add support for logging all changed attributes using
*
- fix for logging changes attributes when deleting soft deletable models
- make sure
properties
always 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-activitylog
toactivitylog
- rename
getChangesAttribute
function tochanges
so it doesn't conflict with Laravel's native functionality
- added
enableLogging
anddisableLogging
- 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
Activity
now extends fromModel
instead ofEloquent
- fix compatibilty for Laravel 5.1
- fix
scopeCausedBy
andscopeForSubject
- add support for
restored
event
- 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
Macroable
toActivityLogger
- added
causedBy
andforSubject
scopes
- Added L5.3 compatibility
- Added
enabled
option in the config file.
- Added
ignoreChangedAttributes
- Added support for using a custom
Activity
model
- 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.1
for Laravel 5.11.3.2
for 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 theCausesActivity
andLogsActivity
-trait
- the package is now compatible with Laravel 5.1
- fixed naming of
inLog
scope - add
inLog
function alias
- fixed error when publishing migrations
- initial release