A free open source IT asset/license management system
Added tag_color to factories
snipee3ac60111fb0
diff --git a/database/factories/CategoryFactory.php b/database/factories/CategoryFactory.phpindex 733c52668e..d7ae1b3ffd 100644--- a/database/factories/CategoryFactory.php+++ b/database/factories/CategoryFactory.php@@ -31,6 +31,7 @@ class CategoryFactory extends Factory'use_default_eula' => false,'created_by' => User::factory()->superuser(),'notes' => 'Created by DB seeder',+ 'tag_color' => $this->faker->hexColor(),];}diff --git a/database/factories/CompanyFactory.php b/database/factories/CompanyFactory.phpindex 12195d78a5..bebde357a6 100644--- a/database/factories/CompanyFactory.php+++ b/database/factories/CompanyFactory.php@@ -25,6 +25,7 @@ class CompanyFactory extends Factory'name' => $this->faker->unique()->company(),'created_by' => 1,'notes' => 'Created by DB seeder',+ 'tag_color' => $this->faker->hexColor(),];}}diff --git a/database/factories/DepartmentFactory.php b/database/factories/DepartmentFactory.phpindex 7e6c2f0025..66bccd241b 100644--- a/database/factories/DepartmentFactory.php+++ b/database/factories/DepartmentFactory.php@@ -28,6 +28,7 @@ class DepartmentFactory extends Factory'created_by' => User::factory()->superuser(),'location_id' => Location::factory(),'notes' => 'Created by DB seeder',+ 'tag_color' => $this->faker->hexColor(),];}diff --git a/database/factories/LocationFactory.php b/database/factories/LocationFactory.phpindex 3d0b444f70..6d59281cba 100644--- a/database/factories/LocationFactory.php+++ b/database/factories/LocationFactory.php@@ -24,6 +24,7 @@ class LocationFactory extends Factory'zip' => $this->faker->postcode(),'image' => rand(1, 9).'.jpg','notes' => 'Created by DB seeder',+ 'tag_color' => $this->faker->hexColor(),];}diff --git a/database/factories/ManufacturerFactory.php b/database/factories/ManufacturerFactory.phpindex 0a8a0a543e..c477325fb3 100644--- a/database/factories/ManufacturerFactory.php+++ b/database/factories/ManufacturerFactory.php@@ -29,6 +29,7 @@ class ManufacturerFactory extends Factory'url' => $this->faker->url(),'support_email' => $this->faker->safeEmail(),'notes' => 'Created by DB seeder',+ 'tag_color' => $this->faker->hexColor(),];}diff --git a/database/factories/SupplierFactory.php b/database/factories/SupplierFactory.phpindex 971cd28990..ba11dbca66 100644--- a/database/factories/SupplierFactory.php+++ b/database/factories/SupplierFactory.php@@ -35,6 +35,7 @@ class SupplierFactory extends Factory'email' => $this->faker->safeEmail(),'url' => $this->faker->url(),'notes' => $this->faker->text(191), // Supplier notes can be a max of 255 characters.+ 'tag_color' => $this->faker->hexColor(),];}}