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
0
votes
2 answers

How to use VentureCraft/revisionable in Laravel?

I want know how to use VentureCraft/revisionable in CRUD application and get a history Ex : users every day need to add mileage and edit mileage ...... in my view (revision.blade.php) i want get history who has add and edit i tried but i don't know…
0
votes
1 answer

revisionHistory is showing for some models but not others

I checked the revisions table in the database and their are revision records for the record I'm trying to show the history for. $record->revisionHistory returns an empty array though. The same code for other models works fine, it is really…
thestepafter
  • 598
  • 1
  • 4
  • 20
0
votes
1 answer

Revisionable presenters not working

First I find a ticket. $tick = App\Tickets::find(14); Then I find a revision for the same: $rev = $tick->latestRevision; But it gives me a error: App\Presenters\Revisions\Tickets #0000000021ba4aef0000000179e23051 {} When I see in database, the…
nirvair
  • 4,001
  • 10
  • 51
  • 85
0
votes
0 answers

Audit trail: return ids of columns with specific column value at a certain time

Using an audit trail in MySQL, how would you find records that had a specific value during a certain time frame? Let's say I want to get the ids of users who were a site admin one week ago (role_id=1). Given the table: **USER** id | role_id |…
Sabrina Leggett
  • 9,079
  • 7
  • 47
  • 50
0
votes
2 answers

How can I have my trait extend a class

I understand that by definition, a trait cannot extend a class, however I'm wondering if there's some kind of workaround. My situation: I created the package revisionable, which in its first incarnation was a class that you extended from your model…
duellsy
  • 8,497
  • 2
  • 36
  • 60
1 2
3