Closed nikhileshva closed 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??
@BlazeNikhilesh To get all revisions you would do the following:
$tickets = Tickets::find($id); $revisions = $tickets->revisions()->get();
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??