Skip to content

A free open source IT asset/license management system

Added user update log factory

snipe4635e9269dc3
diff --git a/database/factories/ActionlogFactory.php b/database/factories/ActionlogFactory.php
index fc359ab61a..b1659ba86a 100644
--- a/database/factories/ActionlogFactory.php
+++ b/database/factories/ActionlogFactory.php
@@ -152,4 +152,17 @@ class ActionlogFactory extends Factory
];
});
}
+
+ public function logUserUpdate()
+ {
+ return $this->state(function () {
+
+ return [
+ 'created_at' => $this->faker->dateTimeBetween('-1 years', 'now', date_default_timezone_get()),
+ 'action_type' => 'update',
+ 'target_type' => User::class,
+ 'item_type' => User::class,
+ ];
+ });
+ }
}