Sofa revisionable nice easy way to keep track of db changes
It is essential for every application to keep track of the data revisions. As an admin or sort of supervising user, you want to know how, when and who is responsible for changing the data.
Here’s something you should try out, because it makes this kind of work stupid-simple:
In order to get going with the package in Laravel4 app, you need to follow just a few simple steps:
-
get the package from the packagist
-
add service provider to the
app/config/app.php
-
publish and adjust config if necessary (like changing revisions table name to something else or using alternative authentication service instead of default illuminate)
-
run the migration
php artisan migrate --package=sofa/revisionable
-
add
RevisionableTrait
and setup revisioned/nonrevisionaed fields and/or custom connection to use for the models you want to keep track of
And.. that’s all!