Documentation:
[
1.x]
·
[
Changelog]
·
Eloquent History Changelog
1.4.0
2024-03-12
- Added Laravel 11 support
- Changed the minimum PostgreSQL version to v12, due to an incompatibility detected with Laravel 11.0.0 and PostgreSQL 11
1.3.0
2023-11-17
- Added the
oldIsUndefined()
& newIsUndefined()
methods to the Change
class
1.2.0
2023-11-16
- Changed the behavior of logRecentUpdate: if there are no changes, then it won't write an empty event in the history
- Changed the behavior of logUpdate: it saves "now" as happened_at instead of the model's updated_at field
- Added the
isEmpty()
and isNotEmpty()
methods to the Diff
class
1.1.1
2023-11-16
- Fixed N+1 query by eager loading the user relationship when retrieving history
1.1.0
2023-11-16
- Added the
ModelHistoryEvent::user(): BelongsTo
relationship
- Added the
konekt.history.user_model
configuration to manually set the user class of the BelongsTo relationship
1.0.1
2023-11-16
- Fixed possible
BadMethodCallException
by changing minimum Laravel version to v10.10.1 due to Arr::mapWithKeys()
being present from that version
1.0.0
2023-11-16
- Initial Release
- Log model creation, update, delete, and retrieval events
- Log model diffs
- Optional comments to events
- Comment-only history events
- Optionally define included/excluded fields on a per-model basis
- Detect the scenery of the event: Via (web, queue, cli) and depending on the context:
- IP, URL, user agent,
- artisan command name
- queue / job
Documentation:
[
1.x]
·
[
Changelog]
·