Allows to create Laravel 5.6 and 6.0 Model versioning and restoring
rodrigopedra/laravel-versionable is a Laravel package for allows to create laravel 5.6 and 6.0 model versioning and restoring.
It currently has 3 GitHub stars and 54 downloads on Packagist (latest version v0.4.0).
Install it with composer require rodrigopedra/laravel-versionable.
Discover more Laravel packages by rodrigopedra
or browse all Laravel packages to compare alternatives.
Last updated
Based on https://github.com/mpociot/versionable
Keep track of all your model changes and revert to previous versions of it.
// Restore to the previous change
$content->previousVersion()->revert();
// Get model from a version
$oldModel = Version::find(100)->getModel();
Laravel Versionable is free software distributed under the terms of the MIT license.