peterguo 2 ヶ月 前
コミット
a43a0f6edf
1 ファイル変更1 行追加1 行削除
  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
     {
-        Company::query()->firstOrCreate(['name' => tenant()->company_name, 'email' => tenant()->email]);
+        Company::create(['name' => tenant()->company_name, 'email' => tenant()->email]);
         $user = User::create([
             'name' => tenant()->id,
             'email' => tenant()->email,