Questions tagged [revisionable]

Revisionable is a Laravel package that allow you to keep revision history for models.

Sometimes it is great being able to track changes within Models, with Laravel Revisionable this has now become a simple process.

You can find their repo on Github along with their Documentation

35 questions
1
vote
2 answers

Laravel VentureCraft revisionable not working on Laravel 5.5 when updating model

I used this package called revisionable so I tried to add it to my package.json and run the migration and everything worked fine. But when I try to create a record and then update them it doesn't fill out the revisions table? I am using…
Jaaayz
  • 1,533
  • 7
  • 27
  • 59
1
vote
2 answers

Eager load related models in Laravel's Revisionable history

Using Laravel 5.4 and the VentureCraft/revisionable package. I have 3 models: User, Company and Order. The Order model implements the Revisionable trait: namespace App\Models; class Order extends Eloquent { use…
Camilo
  • 6,504
  • 4
  • 39
  • 60
1
vote
1 answer

How to trigger a revision for a custom method from a Controller?

When using the RevisionableTrait, how can you trigger it to save a revision for a specific model, all this done from a Controller. An user sends an email (this action doesn't CRUD any model), but I want to track this action. So I do something…
1
vote
2 answers

Laravel VentureCraft/revisionable error migration table

I have a problem with install VentureCraft/revisionable in Laravel. When I trying use this command: php artisan migrate --package=venturecraft/revisionable Artisan returned error: [Symfony\Component\Console\Exception\RuntimeException] The…
major697
  • 139
  • 1
  • 2
  • 15
1
vote
1 answer

How to use Laravel revisionable with morphMaps?

I have a morphMap setup in my AppServiceProvider boot method that is firing when the Laravel revisionable package calls for the record so nothing is being returned. I am looking to figure out how to make revisionable work with morphMaps. Please note…
thestepafter
  • 598
  • 1
  • 4
  • 20
1
vote
1 answer

How do I get just the most recent set of changes in the revisionable package?

Currently I have the revisionable trait correctly storing and fetching the history of a model goes through change. Each update to a model creates a record per field that was changed. Is it possible to group those records by change? Example…
Chris
  • 54,599
  • 30
  • 149
  • 186
1
vote
1 answer

Keeping revision history using VentureCraft/revisionable

I have to display history of changes that are made in my app (like update, insert->who did it , what field changed and when). I am using laravel 4 and I also downloaded this. But the problem is that I am not clear of how to use it. Where to put the…
user3622939
1
vote
2 answers

Laravel 4 Versionable Package error: Class 'MyApp\Models\Eloquent' not found

I'm trying to use the Versionable Package in my Laravel 4 app based on the new, trait based implementation like this
Tochie
  • 59
  • 1
  • 10
1
vote
3 answers

Extending Multiple Classes In Laravel

I am stuck as Php natively does not allow extending multiple classes, i am using laravel models to interact with data and want to use 2 different packages to extend it's functionality. I am trying to use Ardent a validator and Revisionable which…
Aman Virk
  • 3,909
  • 8
  • 40
  • 51
0
votes
0 answers

Laravel VentureCraft/revisionable. How to display changes in pivot tables or related models in the model history?

I have a Users() table and a Roles() table. They have a relation pivot table users_has_roles(n-n relation). I can see in the user's history the addition of new roles - adding rows to the pivot table? Or see changes in the user's history in some rows…
KordDEM
  • 177
  • 10
0
votes
1 answer

How to load and display data from revisions table form VentureCraft/revisionable in Laravel 5.4?

My Route Route::get('news-logs', 'Backend\ChangeLog\ChangeLogController@changeLogNews')->name('change-log-news'); My Model
aryan
  • 11
  • 1
  • 5
0
votes
1 answer

Laravel Revisionable - Tracking of "Form Input Array"

I'm currently using the Revisionable Package v1.28.0 for Laravel v5.4.23 which is a great couple for the most situations. But now I got a little problem with the revisioning of input arrays. The input element is not a…
Texx
  • 23
  • 4
0
votes
1 answer

Laravel with Revisionable Package and catching errors

Using Laravel and Revisionable package. I am populating a table with user record modifications and have the following code snippet: {{ $revision->updated_at }} User {{…
SGlavach
  • 25
  • 2
0
votes
0 answers

Track changes of multiple rows as one revision in laravel

I want to track changes in laravel 5.3 using sofa/revisionable package (or any other package which performs same action) Tables are as follows: item id - primary key title - text item_fields id - primary key title - name of the…
changer
  • 329
  • 2
  • 4
  • 19
0
votes
3 answers

How to change the table name for the revision table

How to change the table name for the revision table by default it is 'revisions'; But I want it to something like page_revisions cause there are many tables with different prefixes. So, I just need how to change the name via config in the model?
msonowal
  • 1,553
  • 3
  • 17
  • 36