All Notable changes to laravel-auditable
will be documented in this file.
- Laravel 11 Support #28
- Implement static analysis tools
- Add GitHub Actions for CI/CD
- Add Pint and Rector
- Upgrade code to PHP 8.2 coding standards
- Add tests using PestPHP
- feat: Add withDefault on deleter #26
- Laravel 10 Support
- fix: phpunit 10 #25
- Laravel 9 Support #18
- Don't touch updated_by if unauthenticated [#17]
- Fix [#16]
- Add support for Laravel 8 [#10].
- Add configurable creator and updater default values if not set.
- Allow Laravel 7 #9, Fix #8.
- Fix touch event of relation, not updating updated_by of related table.
- Drop support for Laravel 5.8 and below.
- Add
AuditableWithDeletesTrait
to be used along withSoftDeletes
. - Add
restoring
event that setsdeleted_by
to null when restored. - Fix [#7].
- Add support for Laravel 6.
- Add option to set custom user via auditUser property.
- Add default value on relations.
- Add method to get user class.
- Use name attribute.
Note: add name getter to present first & last name if needed.
- Add auditing for delete events
- New
deleted_by
column,deleter
relationship anddeletedByName
accessor - Add
auditableWithDeletes()
anddropAuditableWithDeletes()
methods for migrations
- New
- Use
null
user ID if no user found instead of0
- Made column names configurable using model constants:
CREATED_BY
,UPDATED_BY
,DELETED_BY
- Use
unsignedBigIncrements
for migration. - Drop support for Laravel 5.7 and below.
- Fix travis.
- Removed unused dev packages.
- Update docs.
- Add auditable blueprint macro. [e0e18b5]
- Lock support to Laravel 5.5++. [e0e18b5]
- Fix model events param type hint and doc. [893fa37]
- Fix setting of updated_by value column when updating. [ca34c5f]
- Use eager loading when fetching creator/udpater name.
- Fix N+1 query.
- Add github templates.
- Update license.
- Fix git attributes.
- Release stable version.
- Add official docs.
- Register package to packagist.
- Update docs.
- Remove unused dev packages.