Prevents update conflicts using the optimistic lock pattern in Laravel
boing6002/versioning is a Laravel package for prevents update conflicts using the optimistic lock pattern in laravel.
It currently has 0 GitHub stars and 5 downloads on Packagist (latest version 1.1.10).
Install it with composer require boing6002/versioning.
Discover more Laravel packages by boing6002
or browse all Laravel packages to compare alternatives.
Last updated
Prevents update conflicts using the optimistic lock pattern in Laravel
versionings table where it holds versions for all the versionable modelsVersionable trait on a model versioning is handled automaticallyversion attribute after the model is retrieved used for tracking versions and expects the same attribute to be present on the model when the update is calledprotected $versioningAttribute = 'customVersionAttribte' on the modelSoftDeletes the versioning is deleted only on model forceDeleteConflictHttpException if the version is incorrectBe sure to check out the full Enso documentation at docs.laravel-enso.com
are welcome. Pull requests are great, but issues are good too.
This package is released under the MIT license.