jarektkaczyk / revisionable

Nice and easy way to handle revisions of your db
http://softonsofa.com
MIT License
259 stars 43 forks source link

I am able to get the latestRevision, but not able to get all the revision #34

Closed nikhileshva closed 9 years ago

nikhileshva commented 9 years ago

There's a way to get the latest revision on a ticket, but how can I get all the revision on a ticket.

$tickets = Tickets::find($id); $revision = $tickets->latestRevision

How can I get all the revisions on this particular ticket??

jbellomy commented 9 years ago

@BlazeNikhilesh To get all revisions you would do the following:

$tickets = Tickets::find($id); $revisions = $tickets->revisions()->get();