Skip to main content
Back to packages
2,611 GitHub stars

VentureCraft/revisionable

View on GitHub

Description

Easily create a revision history for any laravel model

For any model that you want to keep a revision history for, include the VentureCraft\Revisionable namespace and use the RevisionableTrait in your model, e.g.,

namespace App;
 
use \Venturecraft\Revisionable\RevisionableTrait;
 
class Article extends \Illuminate\Database\Eloquent\Model {
use RevisionableTrait;
}

Being a trait, Revisionable can now be used with the standard Eloquent model, or any class that extends Eloquent.

Recent Courses on Laravel Daily

We'd Love Your Feedback

Tell us what you like or what we can improve

Feel free to share anything you like or dislike about this page or the platform in general.