Skip to content

Commit

Permalink
fix: using insert() instead of create()
Browse files Browse the repository at this point in the history
  • Loading branch information
muhammadmp97 committed Sep 9, 2023
1 parent 7518f84 commit 31e7c17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions database/seeders/DatabaseSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ public function run(): void
CountrySeeder::class,
]);

DB::table('users')->create([
DB::table('users')->insert([
'email' => '[email protected]',
'password' => Hash::make('12345678'),
'nick_name' => 'Administrator 🧑‍💻',
'country_id' => 1,
'addiction_type' => AddictionType::Unknown,
]);

DB::table('users')->create([
DB::table('users')->insert([
'email' => '[email protected]',
'password' => Hash::make('12345678'),
'nick_name' => 'Bot 🤖',
Expand Down

0 comments on commit 31e7c17

Please sign in to comment.