Skip to content

Commit 7184ef4

Browse files
committed
add replicate event
1 parent 78cd774 commit 7184ef4

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

config/user-monitoring.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
'on_destroy' => true,
9393
'on_read' => true,
9494
'on_restore' => false, // Release for next version :)
95-
'on_replicate' => false, // Release for next version :)
95+
'on_replicate' => false,
9696
],
9797

9898
/*

src/Traits/Actionable.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ protected static function boot(): void
3939
});
4040
}
4141

42-
// if (config('user-monitoring.action_monitoring.on_restore', false)) {
43-
// static::restored(function (mixed $model) {
44-
// static::insertActionMonitoring($model, ActionType::ACTION_RESTORED);
45-
// });
46-
// }TODO: Release next version
42+
if (config('user-monitoring.action_monitoring.on_replicate', false)) {
43+
static::replicating(function (mixed $model) {
44+
static::insertActionMonitoring($model, ActionType::ACTION_REPLICATE);
45+
});
46+
}
4747

4848
// if (config('user-monitoring.action_monitoring.on_replicate', false)) {
4949
// static::restored(function (mixed $model) {

0 commit comments

Comments
 (0)