Skip to content

Commit 78e2707

Browse files
committed
add restored event for Actionable
1 parent b25040e commit 78e2707

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Traits/Actionable.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ protected static function boot(): void
4545
});
4646
}
4747

48-
// if (config('user-monitoring.action_monitoring.on_replicate', false)) {
49-
// static::restored(function (mixed $model) {
50-
// static::insertActionMonitoring($model, ActionType::ACTION_REPLICATE);
51-
// });
52-
// }TODO: Release next version
48+
if (config('user-monitoring.action_monitoring.on_restore', false)) {
49+
static::restored(function (mixed $model) {
50+
static::insertActionMonitoring($model, ActionType::ACTION_RESTORED);
51+
});
52+
}
5353
/*
5454
* Events:
5555
* trashed

0 commit comments

Comments
 (0)