wip
This commit is contained in:
@@ -32,8 +32,10 @@ class UsersTableSeeder extends Seeder
|
||||
'must_fill_profile' => true,
|
||||
]);
|
||||
|
||||
DB::statement("SELECT setval('users_id_seq', (SELECT MAX(id) from users));");
|
||||
DB::statement("SELECT nextval('users_id_seq');");
|
||||
if (config('database.default') === 'pgsql') {
|
||||
DB::statement("SELECT setval('users_id_seq', (SELECT MAX(id) from users));");
|
||||
DB::statement("SELECT nextval('users_id_seq');");
|
||||
}
|
||||
|
||||
User::factory()->count(3)->create(['password' => bcrypt('payload10')]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user