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
Testing in Laravel 13 For Beginners
26 lessons
1 h 41 min read
Laravel 13 Eloquent: Expert Level
41 lessons
1 h 34 min
Queues in Laravel 13
18 lessons
1 h 12 min read