A free open source IT asset/license management system
Added archived() factory
snipeb5db4102109f
diff --git a/database/factories/ComponentFactory.php b/database/factories/ComponentFactory.phpindex b0a9b8a806..00857907cd 100644--- a/database/factories/ComponentFactory.php+++ b/database/factories/ComponentFactory.php@@ -47,6 +47,11 @@ class ComponentFactory extends Factory];}+ public function archived(): self+ {+ return $this->state(fn () => ['archived' => true]);+ }+public function ramCrucial4(){$manufacturer = Manufacturer::where('name', 'Crucial')->first() ?? Manufacturer::factory()->create(['name' => 'Crucial']);