mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
A few seeder fixes
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
28a5838dfb
commit
7cbdf2c727
|
@ -54,6 +54,7 @@ class UserFactory extends Factory
|
|||
'first_name' => 'Admin',
|
||||
'last_name' => 'User',
|
||||
'username' => 'admin',
|
||||
'avatar' => '1.jpg',
|
||||
'permissions' => '{"superuser":"1"}',
|
||||
];
|
||||
});
|
||||
|
@ -66,6 +67,7 @@ class UserFactory extends Factory
|
|||
'first_name' => 'Snipe E.',
|
||||
'last_name' => 'Head',
|
||||
'username' => 'snipe',
|
||||
'avatar' => '2.jpg',
|
||||
'email' => 'snipe@snipe.net',
|
||||
'permissions' => '{"superuser":"1"}',
|
||||
];
|
||||
|
|
|
@ -48,7 +48,7 @@ class UserSeeder extends Seeder
|
|||
}
|
||||
}
|
||||
|
||||
$users = User::orderBy('id', 'desc')->take(20)->get();
|
||||
$users = User::orderBy('id', 'asc')->take(20)->get();
|
||||
$file_number = 1;
|
||||
|
||||
foreach ($users as $user) {
|
||||
|
|
Loading…
Reference in a new issue