jsefton/revisionable

Laravel Revisionable

Maintainers

Package info

github.com/jsefton/revisionable

Homepage

pkg:composer/jsefton/revisionable

Statistics

Installs: 52

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.0 2020-12-06 18:46 UTC

This package is auto-updated.

Last update: 2026-03-01 00:33:42 UTC


README

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