diff --git a/app/Console/Commands/DemoMode.php b/app/Console/Commands/DemoMode.php index 847166eab500..f58b9d5bfdd6 100644 --- a/app/Console/Commands/DemoMode.php +++ b/app/Console/Commands/DemoMode.php @@ -331,7 +331,7 @@ class DemoMode extends Command private function createVendor($client, $assigned_user_id = null) { - Vendor::factory()->count(1)->create([ + $vendor = Vendor::factory()->create([ 'user_id' => $client->user_id, 'company_id' => $client->company_id, ]);