mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Added user update log factory
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
574867536d
commit
4635e9269d
|
@ -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,
|
||||
];
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue