FEATURE - Model rollback() to roll back the model to a previous log history #1427
Unanswered
MattWiseParking
asked this question in
Ideas
Replies: 1 comment 1 reply
-
|
In the LogsActivity.php trait you could have something like: |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Would be a really nice function if we could rollback a model from the previous most recent history (by default), for example:
$model->rollback()would roll back the model to the most recent activity log from the arrayOr if we wanted to specify a log id we could potentially use
$model->rollback($log->id)so we could rollback any history.Just a thought, what do you think?
Beta Was this translation helpful? Give feedback.
All reactions