Generate unique names for departments
This commit is contained in:
parent
10dad8e6e6
commit
87ba2cb407
1 changed files with 1 additions and 1 deletions
|
@ -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(),
|
||||
];
|
||||
|
|
Loading…
Add table
Reference in a new issue