Added user update log factory

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-07-03 20:18:34 +01:00
parent 574867536d
commit 4635e9269d

View file

@ -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,
];
});
}
}