This commit is contained in:
2025-10-27 17:45:11 +05:00
parent 01a7b01435
commit a96f4fc8c8

View File

@@ -32,10 +32,8 @@ class UsersTableSeeder extends Seeder
'must_fill_profile' => true, 'must_fill_profile' => true,
]); ]);
DB::statement(" DB::statement("SELECT setval('users_id_seq', (SELECT MAX(id) from users));");
SELECT setval('users_id_seq', (SELECT MAX(id) from users)); DB::statement("SELECT nextval('users_id_seq');");
SELECT nextval('users_id_seq');
");
User::factory()->count(3)->create(['password' => bcrypt('payload10')]); User::factory()->count(3)->create(['password' => bcrypt('payload10')]);
} }