NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #3723 most downloaded on Packagist
Make Laravel model versionable.
Latest stable
v6.0.1
Last release 1 months ago
07 Oct 2026
Ships unpredictably
gaps range from 2 weeks to 10 months
Most releases are documented
notes for 42 of 59 stable releases
Nothing withdrawn
no release was ever pulled
7 years old
60 releases · first in 2019
Drag across the ruler to compare, or tap a release to open it.
Fix withoutVersion() so the previous versioning state is always restored when a callback throws, including nested calls and already-disabled models.
withoutVersion() so the previous versioning state is always restored when a callback throws, including nested calls and already-disabled models.Backwards-compatible patch for Laravel 13 and PHP 8.3+.
Validation: 53 tests / 226 assertions; all 10 post-merge CI jobs passed across PHP 8.3, 8.4, and 8.5.
PR: https://github.com/overtrue/laravel-versionable/pull/117 CI: https://github.com/overtrue/laravel-versionable/actions/runs/37580489545
Bump minimum PHP version to 8.3
Your coding agent can read these notes before it upgrades. Set up the MCP server →
fix: Fix breaking changes in #88 by @overtrue in https://github.com/overtrue/laravel-versionable/pull/101
Full Changelog: https://github.com/overtrue/laravel-versionable/compare/5.4.0...5.5.0
Laravel 12.x Compatibility by @laravel-shift in https://github.com/overtrue/laravel-versionable/pull/94
Full Changelog: https://github.com/overtrue/laravel-versionable/compare/5.3.3...5.4.0
Resolution for Issue #89 by @cpiggott in https://github.com/overtrue/laravel-versionable/pull/90
Full Changelog: https://github.com/overtrue/laravel-versionable/compare/5.3.2...5.3.3
Full Changelog: https://github.com/overtrue/laravel-versionable/compare/5.3.1...5.3.2
Full Changelog: https://github.com/overtrue/laravel-versionable/compare/5.3.1...5.3.2
Full Changelog: https://github.com/overtrue/laravel-versionable/compare/5.3.0...5.3.1
Full Changelog: https://github.com/overtrue/laravel-versionable/compare/5.3.0...5.3.1
Added Version::isLatest(). Full Changelog: https://github.com/overtrue/laravel-versionable/compare/5.2.7...5.3.0
Added Version::isLatest().
Full Changelog: https://github.com/overtrue/laravel-versionable/compare/5.2.7...5.3.0
Update Diff.php for VersionStrategy::DIFF by @SirajCse in https://github.com/overtrue/laravel-versionable/pull/85
Full Changelog: https://github.com/overtrue/laravel-versionable/compare/5.2.6...5.2.7
feat: add json pretty print for json columns by @mansoorkhan96 in https://github.com/overtrue/laravel-versionable/pull/86
Full Changelog: https://github.com/overtrue/laravel-versionable/compare/5.2.5...5.2.6
Full Changelog: https://github.com/overtrue/laravel-versionable/compare/5.2.4...5.2.5
Full Changelog: https://github.com/overtrue/laravel-versionable/compare/5.2.4...5.2.5
Change $this->getAttributes() to $this->attributesToArray() by @robsonek in https://github.com/overtrue/laravel-versionable/pull/79
Full Changelog: https://github.com/overtrue/laravel-versionable/compare/5.2.3...5.2.4
feat: Add support for other Foreign Key for different Models by @robsonek in https://github.com/overtrue/laravel-versionable/pull/78
Full Changelog: https://github.com/overtrue/laravel-versionable/compare/5.2.2...5.2.3
Fixed Version primary key cast error. #76
Full Changelog: https://github.com/overtrue/laravel-versionable/compare/5.2.1...5.2.2
test: add failing test for diff triming the data by @mansoorkhan96 in https://github.com/overtrue/laravel-versionable/pull/72
Full Changelog: https://github.com/overtrue/laravel-versionable/compare/5.2.0...5.2.1
feat: Add option to strip tags for diff by @mansoorkhan96 in https://github.com/overtrue/laravel-versionable/pull/70
Full Changelog: https://github.com/overtrue/laravel-versionable/compare/5.1.4...5.2.0
Full Changelog: https://github.com/overtrue/laravel-versionable/compare/5.1.3...5.1.4
Full Changelog: https://github.com/overtrue/laravel-versionable/compare/5.1.3...5.1.4
Prevent lazyloading by @AlexisSerneels in https://github.com/overtrue/laravel-versionable/pull/67
Full Changelog: https://github.com/overtrue/laravel-versionable/compare/5.1.2...5.1.3
fix: respect $dontVersionable when checking if version should be created by @mutschler in https://github.com/overtrue/laravel-versionable/pull/61
Full Changelog: https://github.com/overtrue/laravel-versionable/compare/5.1.1...5.1.2
Fix/Snapshot version issue by @mansoorkhan96 in https://github.com/overtrue/laravel-versionable/pull/60
Full Changelog: https://github.com/overtrue/laravel-versionable/compare/5.1.0...5.1.1
Feat/Add getStatistics method to Diff class by @mansoorkhan96 in https://github.com/overtrue/laravel-versionable/pull/55
Full Changelog: https://github.com/overtrue/laravel-versionable/compare/5.0.0...5.1.0
Deprecated history() and replaced with latestVersions()
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()Optionally create initial version of model by @mansoorkhan96 in https://github.com/overtrue/laravel-versionable/pull/53
Full Changelog: https://github.com/overtrue/laravel-versionable/compare/4.5.0...5.0.0-beta.1
Full Changelog: https://github.com/overtrue/laravel-versionable/compare/4.6.4...4.6.5
Full Changelog: https://github.com/overtrue/laravel-versionable/compare/4.6.4...4.6.5
Full Changelog: https://github.com/overtrue/laravel-versionable/compare/4.6.3...4.6.4
Full Changelog: https://github.com/overtrue/laravel-versionable/compare/4.6.3...4.6.4
Full Changelog: https://github.com/overtrue/laravel-versionable/compare/4.6.0...4.6.3
Full Changelog: https://github.com/overtrue/laravel-versionable/compare/4.6.0...4.6.3
Create initial version of model by @mansoorkhan96 in https://github.com/overtrue/laravel-versionable/pull/53
Full Changelog: https://github.com/overtrue/laravel-versionable/compare/4.5.0...4.6.0
Add ability to change Model(table) for versions in model that using trait versionable by @vobar in https://github.com/overtrue/laravel-versionable/pul
Full Changelog: https://github.com/overtrue/laravel-versionable/compare/4.4.0...4.5.0
feat: Add support for nested arrays in content by @tasinttttttt in https://github.com/overtrue/laravel-versionable/pull/46
Full Changelog: https://github.com/overtrue/laravel-versionable/compare/4.3.0...4.4.0
support Laravel 10.0 by @hihuangwei in https://github.com/overtrue/laravel-versionable/pull/45
Full Changelog: https://github.com/overtrue/laravel-versionable/compare/4.2.1...4.3.0
Full Changelog: https://github.com/overtrue/laravel-versionable/compare/4.2.0...4.2.1
Full Changelog: https://github.com/overtrue/laravel-versionable/compare/4.2.0...4.2.1
Allow adding versions manually by @marijoo in https://github.com/overtrue/laravel-versionable/pull/44
Full Changelog: https://github.com/overtrue/laravel-versionable/compare/4.1.0...4.2.0
Add method to find a models version at a specific time by @marijoo in https://github.com/overtrue/laravel-versionable/pull/43
Full Changelog: https://github.com/overtrue/laravel-versionable/compare/4.0.2...4.1.0
Using passthrough of model connection. by @ryangurn in https://github.com/overtrue/laravel-versionable/pull/37
Full Changelog: https://github.com/overtrue/laravel-versionable/compare/4.0.1...4.0.2
调整 Versionable Trait 中 getVersionUserId 方法逻辑策略 by @ranpro in https://github.com/overtrue/laravel-versionable/pull/35
Full Changelog: https://github.com/overtrue/laravel-versionable/compare/4.0.0...4.0.1
New version difference comparison implementation. #34
What's changed
firstVersion() returns MorphOne now()Full Changelog: https://github.com/overtrue/laravel-versionable/compare/3.1.3...4.0.0
Full Changelog: https://github.com/overtrue/laravel-versionable/compare/3.1.3...3.1.4
Full Changelog: https://github.com/overtrue/laravel-versionable/compare/3.1.3...3.1.4
Revert "fix type" by @overtrue in https://github.com/overtrue/laravel-versionable/pull/33
Full Changelog: https://github.com/overtrue/laravel-versionable/compare/3.1.2...3.1.3
fix type by @anhao in https://github.com/overtrue/laravel-versionable/pull/32
Full Changelog: https://github.com/overtrue/laravel-versionable/compare/3.1.1...3.1.2
Full Changelog: https://github.com/overtrue/laravel-versionable/compare/3.1.0...3.1.1
Full Changelog: https://github.com/overtrue/laravel-versionable/compare/3.1.0...3.1.1
Full Changelog: https://github.com/overtrue/laravel-versionable/compare/3.0.1...3.1.0
Full Changelog: https://github.com/overtrue/laravel-versionable/compare/3.0.1...3.1.0
Nothing published for this version
support Laravel 9.0 by @hihuangwei in https://github.com/overtrue/laravel-versionable/pull/28
Full Changelog: https://github.com/overtrue/laravel-versionable/compare/2.6.1...3.0.0
Nothing published for this version
Nothing published for this version
Nothing published for this version
#18 Added revertWithoutSaving() (by @MTEXX )
#18 Added revertWithoutSaving() (by @MTEXX )
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.