peterguo 2 months ago
parent
commit
a43a0f6edf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      database/seeders/SuperAdminSeeder.php

+ 1 - 1
database/seeders/SuperAdminSeeder.php

@@ -16,7 +16,7 @@ class SuperAdminSeeder extends Seeder
      */
      */
     public function run(): void
     public function run(): void
     {
     {
-        Company::query()->firstOrCreate(['name' => tenant()->company_name, 'email' => tenant()->email]);
+        Company::create(['name' => tenant()->company_name, 'email' => tenant()->email]);
         $user = User::create([
         $user = User::create([
             'name' => tenant()->id,
             'name' => tenant()->id,
             'email' => tenant()->email,
             'email' => tenant()->email,