mirror of
https://github.com/sp-tarkov/forge.git
synced 2025-02-12 12:10:41 -05:00
Ensures Test User
Change ensures that an administrator of test@example.com/password is always created when seeding the database.
This commit is contained in:
parent
b4107fc0ef
commit
96e87680a8
@ -25,7 +25,10 @@ class DatabaseSeeder extends Seeder
|
||||
|
||||
// Add 5 administrators.
|
||||
$administrator = UserRole::factory()->administrator()->create();
|
||||
User::factory(5)->for($administrator, 'role')->create();
|
||||
User::factory()->for($administrator, 'role')->create([
|
||||
'email' => 'test@example.com',
|
||||
]);
|
||||
User::factory(4)->for($administrator, 'role')->create();
|
||||
|
||||
// Add 10 moderators.
|
||||
$moderator = UserRole::factory()->moderator()->create();
|
||||
|
Loading…
x
Reference in New Issue
Block a user