From 7cbdf2c727aa7dcd7c167fbdc8fb72cc76f34bcd Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 23 Sep 2021 22:16:19 -0700 Subject: [PATCH] A few seeder fixes Signed-off-by: snipe --- database/factories/UserFactory.php | 2 ++ database/seeders/UserSeeder.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/database/factories/UserFactory.php b/database/factories/UserFactory.php index 86681f2598..30a502db52 100644 --- a/database/factories/UserFactory.php +++ b/database/factories/UserFactory.php @@ -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"}', ]; diff --git a/database/seeders/UserSeeder.php b/database/seeders/UserSeeder.php index 107e8a3372..04f46e29b4 100644 --- a/database/seeders/UserSeeder.php +++ b/database/seeders/UserSeeder.php @@ -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) {