Various fixes for DB seeding
This commit is contained in:
@@ -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,
|
||||
]);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user