Log all changes to our data using Laravel Revisionable
VentureCraft creates a popular package that we can use to easily create a revision history for any Laravel model.
Wouldn't it be nice to have a revision history for any model in your project, without having to do any work for it. By simply extending revisionable from your model, you can instantly have just that, and be able to display a history similar to this:
Chris changed title from 'Something' to 'Something else' Chris changed category from 'News' to 'Breaking news' Matt changed category from 'Breaking news' to 'News' So not only can you see a history of what happened, but who did what, so there's accountability.
Revisionable is a laravel package that allows you to keep a revision history for your models without thinking.
Link:
This post is submitted by our members. Submit a new post.
Tags: Tutorials Laravel 5 Laravel 5.1 Laravel 5.2 Intermediate