mirror of
https://github.com/snipe/snipe-it.git
synced 2026-02-05 09:25:26 +00:00
Generate unique names for departments
This commit is contained in:
@ -24,7 +24,7 @@ class DepartmentFactory extends Factory
|
||||
public function definition()
|
||||
{
|
||||
return [
|
||||
'name' => $this->faker->word() . ' Department',
|
||||
'name' => $this->faker->unique()->word() . ' Department',
|
||||
'user_id' => User::factory()->superuser(),
|
||||
'location_id' => Location::factory(),
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user