started to add indexes and fixed N+1 issue

This commit is contained in:
Mark Gregory
2026-06-12 14:11:18 +01:00
parent 05ff54ea76
commit e79a029bed
@@ -39,6 +39,18 @@ class PlatformSeeder extends Seeder
'is_company_admin' => true,
'status' => 'active',
'email_verified_at' => now(),
],
);
User::updateOrCreate(
['email' => 'david.price@mpba.co.uk'],
[
'company_id' => $company->id,
'name' => 'David Price',
'password' => Hash::make('Password1'),
'is_platform_admin' => true,
'is_company_admin' => true,
'status' => 'active',
'email_verified_at' => now(),
]
);