Skip to content

Releases: iamfarhad/laravel-audit-log

1.6.0

21 Nov 08:32
6aecc15

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 1.5.1...1.6.0

1.5.1

20 Aug 10:51

Choose a tag to compare

What's Changed

  • [Bug Fix] Auditable Trait incorrectly ignoring inclusion and exclusion variables by @Hourja in #3

New Contributors

  • @Hourja made their first contribution in #3

Full Changelog: 1.5.0...1.5.1

1.5.0

29 Jun 13:45

Choose a tag to compare

Full Changelog: 1.4.1...1.5.0

Added

  • Smart Retention System
  • Flexible Retention Configuration
  • Artisan Command for Cleanup
  • Queue-Based Processing
  • Smart Data Anonymization
  • Enhanced Database Schema
  • Comprehensive Test Coverage

Changed

  • PHPUnit 11/12 Compatibility
  • Enhanced Documentation
  • Updated Configuration

Fixed

  • PHP 8.1 Compatibility
  • PHPStan Level 5 Compliance
  • PSR-12 Code Style
  • Documentation Accuracy

Security

  • Access Control
  • Data Recovery
  • Audit Trail
  • Anonymization Verification

Performance

  • Batch Processing
  • Database Optimization
  • Queue Support
  • Connection Pooling

1.4.1

29 Jun 11:19

Choose a tag to compare

Full Changelog: 1.4.0...1.4.1

Added

  • Database connection support for flexible audit storage
  • Connection configuration option in audit-logger.drivers.mysql.connection
  • Enhanced MySQLDriver constructor to accept optional connection parameter
  • getConnectionName() method in EloquentAuditLog model for connection retrieval
  • Connection parameter support in AuditLogger::getDriver() static method
  • Comprehensive connection testing with 3 new test cases
  • Automatic connection setting for Eloquent models in audit operations

Changed

  • Enhanced: MySQLDriver now respects configured database connections for all operations
  • Enhanced: EloquentAuditLog::forEntity() automatically sets connection from configuration
  • Enhanced: All Schema operations now use the specified connection
  • Enhanced: Service provider registration includes connection configuration
  • Enhanced: Audit models automatically use configured connection for storage and retrieval
  • Backward Compatible: Existing code continues to work without changes

Fixed

  • Connection handling in all database operations (Schema creation, model operations)
  • Proper connection fallback to default database when no specific connection configured
  • Test database operations now use correct connections for isolation

Documentation

  • Added connection configuration examples and usage patterns
  • Enhanced README with multi-connection setup instructions
  • Updated test documentation for connection-specific scenarios

1.4.0

12 Jun 19:05

Choose a tag to compare

Full Changelog: 1.3.1...1.4.0

[1.4.0] - 2025-06-07

Added

  • PHP 8.4 support: Leveraged new language features and improved compatibility
  • readonly properties for DTOs and Value Objects to promote immutability
  • Enhanced DTOs with stricter typing and property visibility
  • New configuration options for advanced field management and causer resolution
  • Improved batch processing for high-volume audit logging
  • Additional query scopes for more granular audit log filtering
  • More comprehensive test coverage for new features and edge cases

Changed

  • All service classes are now final by default for better composition and code safety
  • Refactored service and repository classes to use dependency injection exclusively
  • Improved PSR-12 code style enforcement and static analysis integration
  • Updated documentation to reflect new PHP 8.4 and Laravel 12.x best practices
  • Enhanced performance for audit log writes and queries
  • Updated default configuration for better security and compliance

Fixed

  • Resolved edge case bugs in source tracking for queued jobs and HTTP requests
  • Fixed issues with field exclusion logic in global and model-specific settings
  • Improved error handling and exception messages for misconfiguration
  • Addressed minor bugs reported by the community

Documentation

  • Updated README with PHP 8.4 and Laravel 12.x usage examples
  • Added migration and upgrade guide for 1.4.0
  • Expanded troubleshooting and security best practices sections

1.3.1

06 Jun 16:41

Choose a tag to compare

Full Changelog: 1.3.0...1.3.1

[1.3.1] - 2025-06-06

Fixed

  • Fixed PHPStan static analysis issues at Level 5 with strict rules
  • Removed references to deleted ModelAudited event and AuditModelChanges listener classes
  • Improved type safety with better null and type checking in route handling
  • Enhanced method existence checks in AuditBuilder service
  • Fixed scope method return types in EloquentAuditLog model
  • Updated unit tests to work with direct logging architecture (removed event dependencies)
  • Cleaned up unused imports and improved code organization

Changed

  • Added PHPStan ignore rule for dynamic method call warnings in query scopes
  • Enhanced test setup with proper service mocking for unit tests
  • Improved code quality and maintainability

1.3.0

06 Jun 16:16

Choose a tag to compare

Full Changelog: 1.2.1...1.3.0

1.2.1

30 May 15:30

Choose a tag to compare

Full Changelog: 1.2.0...1.2.1

1.2.0

30 May 14:30

Choose a tag to compare

Full Changelog: 1.1.0...1.2.0

1.1.0

28 May 18:57

Choose a tag to compare

Full Changelog: 1.0.0...1.1.0