File tree Expand file tree Collapse file tree
app/sprinkles/account/factories Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414 * General factory for the Group Model
1515 */
1616$ fm ->define ('UserFrosting\Sprinkle\Account\Database\Models\Group ' )->setDefinitions ([
17- 'slug ' => Faker::text (10 ),
1817 'name ' => Faker::word (),
1918 'description ' => Faker::paragraph (),
19+ 'slug ' => function ($ object , $ saved ) {
20+ return uniqid ();
21+ }
2022]);
Original file line number Diff line number Diff line change 1414 * General factory for the Permission Model
1515 */
1616$ fm ->define ('UserFrosting\Sprinkle\Account\Database\Models\Permission ' )->setDefinitions ([
17- 'slug ' => Faker::text (10 ),
1817 'name ' => Faker::word (),
1918 'description ' => Faker::paragraph (),
2019 'conditions ' => Faker::word (),
20+ 'slug ' => function ($ object , $ saved ) {
21+ return uniqid ();
22+ }
2123]);
Original file line number Diff line number Diff line change 1414 * General factory for the Role Model
1515 */
1616$ fm ->define ('UserFrosting\Sprinkle\Account\Database\Models\Role ' )->setDefinitions ([
17- 'slug ' => Faker::text (10 ),
1817 'name ' => Faker::word (),
1918 'description ' => Faker::paragraph (),
19+ 'slug ' => function ($ object , $ saved ) {
20+ return uniqid ();
21+ }
2022]);
You can’t perform that action at this time.
0 commit comments