Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show complete history for all models #85

Closed
lowerends opened this issue Aug 6, 2014 · 1 comment
Closed

Show complete history for all models #85

lowerends opened this issue Aug 6, 2014 · 1 comment

Comments

@lowerends
Copy link

It's possible to load the history for a specific model using $history = $article->revisionHistory;. I'm wondering if it's also possible to load the complete history for all the records in the revisions table, independent of the model. Are there any shortcuts for this in the package?

@duellsy
Copy link
Member

duellsy commented Aug 8, 2014

You can just load all Revision models, e.g.,

$history = \Venturecraft\Revisionable\Revision::all();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants