1. Go to this page and download the library: Download asc/revisionable library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
asc / revisionable example snippets
"venturecraft/revisionable": "1.*",
namespace MyApp\Models;
class Article extends Eloquent {
use \Venturecraft\Revisionable\RevisionableTrait;
}
use Venturecraft\Revisionable\Revisionable;
namespace MyApp\Models;
class Article extends Revisionable { }
namespace MyApp\Models;
class Article extends Eloquent {
use Venturecraft\Revisionable\RevisionableTrait;
protected $revisionEnabled = false;
}