Various fixes for DB seeding

This commit is contained in:
2025-12-04 22:37:16 +01:00
parent 0200c38f30
commit b7a880d66a
12 changed files with 71 additions and 75 deletions
+3 -1
View File
@@ -21,6 +21,7 @@ public function run(): void
PaymentTermsSeeder::class,
SettingsTableSeeder::class,
TodoTypeSeeder::class,
UnitSeeder::class,
]);
$user = User::factory()->create([
@@ -46,7 +47,8 @@ public function run(): void
// Create some notes for each customer
Note::factory(rand(0, 5))->create([
'user_id' => $user->id,
'customer_id' => $customer->id,
'notable_id' => $customer->id,
'notable_type' => Customer::class,
]);
});