firstOrCreate( ['slug' => 'default'], ['name' => 'Default Workspace', 'slug' => 'default'], ); Tenant::query()->updateOrCreate( ['external_id' => 'platform'], ['name' => 'Platform', 'workspace_id' => (int) $workspace->getKey()], ); PlatformUser::query()->updateOrCreate( ['email' => 'operator@tenantpilot.io'], [ 'name' => 'Platform Operator', 'password' => Hash::make('password'), 'capabilities' => [ 'platform.access_system_panel', 'platform.use_break_glass', ], 'is_active' => true, ], ); } }