Skip to content

jsefton/revisionable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Revisionable

Requires Laravel 7.0+

Installation

composer require jsefton/revisionable

Usage

A revision log is made when anything is changed and saved to the database inside the revisions table. It stores the original value and the current value upon a model being saved.

This can be used on any model. To enable it add the Revisionable trait.

use Revisionable\Revisionable;

class Post
{
    use Revisionable;
}

TODO

  • Add in method to restore a previous revision

About

Create audit logs of any changes to a model

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages