2017 © Pedro Peláez
 

library laravel-versionable

Enables versioning of Eloquent models.

image

sasin91/laravel-versionable

Enables versioning of Eloquent models.

  • Friday, April 6, 2018
  • by Sasin91
  • Repository
  • 1 Watchers
  • 0 Stars
  • 21 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 62 % Grown

The README.md

Enable versioning of your eloquent models.

This package makes it a breeze to version your eloquent models, allowing the developer(s) to easily revert to a previous state or even ressurect a deleted model!, (*1)

Installation

You can install the package via composer:, (*2)

composer require sasin91/laravel-versionable
php artisan vendor:publish --provider="Sasin91\LaravelVersionable\VersionableServiceProvider"

Configuration

Edit the versionable.php file in your config directory, after publishing., (*3)

Usage

Use the Sasin91\LaravelVersionable\Versionable trait in your eloquent models., (*4)

example

``` php use Illuminate\Database\Eloquent\Model as Eloquent; use Sasin91\LaravelVersionable\Versionable;, (*5)

class YourModel extends Eloquent { use Versionable; // }, (*6)


### Testing ``` bash composer test

Security

If you discover any security related issues, please email jonas.kerwin.hansen@gmail.com instead of using the issue tracker., (*7)

License

The MIT License (MIT). Please see License File for more information., (*8)

The Versions

06/04 2018

dev-master

9999999-dev

Enables versioning of Eloquent models.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jonas Kervin Hansen