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.