Skip to content

Commit c97077a

Browse files
committed
Making harder for factories to create collision by forcing a number of char for slug word
1 parent 73b43ea commit c97077a

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

app/sprinkles/account/factories/Group.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* General factory for the Group Model
1515
*/
1616
$fm->define('UserFrosting\Sprinkle\Account\Database\Models\Group')->setDefinitions([
17-
'slug' => Faker::unique()->word(),
17+
'slug' => Faker::word(10),
1818
'name' => Faker::word(),
1919
'description' => Faker::paragraph(),
2020
]);

app/sprinkles/account/factories/Permissions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* General factory for the Permission Model
1515
*/
1616
$fm->define('UserFrosting\Sprinkle\Account\Database\Models\Permission')->setDefinitions([
17-
'slug' => Faker::unique()->word(),
17+
'slug' => Faker::word(10),
1818
'name' => Faker::word(),
1919
'description' => Faker::paragraph(),
2020
'conditions' => Faker::word(),

app/sprinkles/account/factories/Roles.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* General factory for the Role Model
1515
*/
1616
$fm->define('UserFrosting\Sprinkle\Account\Database\Models\Role')->setDefinitions([
17-
'slug' => Faker::unique()->word(),
17+
'slug' => Faker::word(10),
1818
'name' => Faker::word(),
1919
'description' => Faker::paragraph(),
2020
]);

0 commit comments

Comments
 (0)