Skip to content

feat: enhance history system with polymorphic causer, runtime logging…#16

Merged
emreakay merged 1 commit into
mainfrom
improvements
Mar 2, 2026
Merged

feat: enhance history system with polymorphic causer, runtime logging…#16
emreakay merged 1 commit into
mainfrom
improvements

Conversation

@mfarukdev

Copy link
Copy Markdown
Collaborator

… control, restored event support, query scopes, model relationship, and dontLogIfAttributesChangedOnly

  • Add causer_type column for polymorphic causer support (morphTo relationship)
  • Add LogiAuditStatus class for global enable/disable logging control
  • Add per-instance disableLogging()/enableLogging() and static withoutLogging(callback)
  • Add restored event tracking for SoftDeletes models
  • Add auditHistory() morphMany relationship on models using LogiAuditTrait
  • Add query scopes: forModel(), byUser(), forEvent(), forTable() on LogiAuditHistory
  • Add dontLogIfAttributesChangedOnly to skip history when only insignificant columns change
  • Add migration for causer_type column with index
  • Add comprehensive tests for all new features (8 new test cases)

… control, restored event support, query scopes, model relationship, and dontLogIfAttributesChangedOnly

  - Add causer_type column for polymorphic causer support (morphTo relationship)
  - Add LogiAuditStatus class for global enable/disable logging control
  - Add per-instance disableLogging()/enableLogging() and static withoutLogging(callback)
  - Add restored event tracking for SoftDeletes models
  - Add auditHistory() morphMany relationship on models using LogiAuditTrait
  - Add query scopes: forModel(), byUser(), forEvent(), forTable() on LogiAuditHistory
  - Add dontLogIfAttributesChangedOnly to skip history when only insignificant columns change
  - Add migration for causer_type column with index
  - Add comprehensive tests for all new features (8 new test cases)
@emreakay emreakay merged commit 7f88477 into main Mar 2, 2026
15 of 51 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants