File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,20 @@ To enable revisions on your Model do the following:
9191$ php artisan migrate --path=vendor/venturecraft/revisionable/src/migrations # run revisionable migrations
9292```
9393
94- 2 . Add the ` \Venturecraft\Revisionable\RevisionableTrait ` Trait to your Model.
94+ 2 . Add the ` \Venturecraft\Revisionable\RevisionableTrait ` Trait to your Model. E.g:
95+ ``` php
96+ namespace MyApp\Models;
97+
98+ class Article extends Eloquent {
99+ use \Backpack\CRUD\CrudTrait, \Venturecraft\Revisionable\RevisionableTrait;
100+
101+ // If you are using another bootable trait the be sure to override the boot method in your model
102+ public static function boot()
103+ {
104+ parent::boot();
105+ }
106+ }
107+ ```
95108
961093 . Enable access to Revisions in your CrudController with:
97110``` php
You can’t perform that action at this time.
0 commit comments