revisions

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:

Sofa/Revisionable

In order to get going with the package in Laravel4 app, you need to follow just a few simple steps:

1. get the package from the packagist

2. add service provider to the app/config/app.php

3. publish and adjust config if necessary (like changing revisions table name to something else or using alternative authentication service instead of default illuminate)

4. run the migration php artisan migrate --package=sofa/revisionable

5. 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!

 

 

Get back soon for more info, example usage and more!

 

 

It's only fair to share...Tweet about this on TwitterShare on RedditPin on PinterestShare on FacebookShare on Google+

Related Post

20 Eloquent tricks – more Recently I stumbled upon interesting article by Povilas Korop on laravel-news 20 eloquent tips and tricks. First of all thanks for sharing your knowle...
A story about Laravel Resources Leo is a brilliant developer. He turns every idea into code in no time. He's prepared for any task thrown at him and dives into coding straight away, ...
How to add custom casters in Laravel tinker I made a series about psysh and Laravel's tinker - powerful REPL where you can play with your whole application. ICYMI check it out here: tinker li...
Too much M4g1c will kill you (or at least bite you... So, as you know, I'm a big fan of Laravel, in particular Eloquent is my favourite. The beauty and value of both is a lot of conventions and magic...