Skip to content

A free open source IT asset/license management system

Remove default category relationship from license factory

Marcus Moore2f0f9586b184
diff --git a/database/factories/LicenseFactory.php b/database/factories/LicenseFactory.php
index 8a7a4ee770..cc58d58c9f 100644
--- a/database/factories/LicenseFactory.php
+++ b/database/factories/LicenseFactory.php
@@ -57,7 +57,6 @@ class LicenseFactory extends Factory
'reassignable' => $this->faker->boolean(),
'termination_date' => $this->faker->dateTimeBetween('-1 years', 'now', date_default_timezone_get())->format('Y-m-d H:i:s'),
'supplier_id' => Supplier::factory(),
- 'category_id' => Category::where('category_type', '=', 'license')->inRandomOrder()->first()->id
];
}