db factories: More unique constrains
This commit is contained in:
parent
23d7e8632b
commit
cdc218e116
|
@ -16,7 +16,7 @@ class GroupFactory extends Factory
|
|||
public function definition()
|
||||
{
|
||||
return [
|
||||
'name' => $this->faker->word(),
|
||||
'name' => $this->faker->unique()->word(),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@ class PrivilegeFactory extends Factory
|
|||
public function definition()
|
||||
{
|
||||
return [
|
||||
'name' => $this->faker->word(),
|
||||
'name' => $this->faker->unique()->word(),
|
||||
'description' => $this->faker->text(),
|
||||
];
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@ class ScheduleFactory extends Factory
|
|||
public function definition()
|
||||
{
|
||||
return [
|
||||
'name' => $this->faker->words(4, true),
|
||||
'name' => $this->faker->unique()->words(4, true),
|
||||
'url' => $this->faker->parse('https://{{safeEmailDomain}}/{{slug}}.xml'),
|
||||
'shift_type' => $this->faker->numberBetween(1, 5),
|
||||
'minutes_before' => 15,
|
||||
|
|
Loading…
Reference in New Issue