⏱️Make Laravel model versionable
Full Changelog: https://github.com/overtrue/laravel-versionable/compare/5.1.4...5.2.0
Full Changelog: https://github.com/overtrue/laravel-versionable/compare/4.6.1...4.6.2
Full Changelog: https://github.com/overtrue/laravel-versionable/compare/5.1.2...5.1.3
Full Changelog: https://github.com/overtrue/laravel-versionable/compare/5.1.1...5.1.2
Full Changelog: https://github.com/overtrue/laravel-versionable/compare/5.1.0...5.1.1
Full Changelog: https://github.com/overtrue/laravel-versionable/compare/5.0.0...5.1.0
oldestVersions()
latestVersions()
setVersionStrategy(string $strategy)
now accept string or enum class: setVersionStrategy(string|VersionStrategy $strategy)
.VersionStrategy::SNAPSHOT
will no longer contain all model attributes, but only all $versionable
attributes.VersionStrategy::DIFF
strategy.history()
and replaced with latestVersions()