We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b03d9d commit 581c880Copy full SHA for 581c880
src/Services/VersionService.php
@@ -160,11 +160,14 @@ public function getVersionStatistics(): array
160
$latestVersion = $this->getLatestPlatformVersion();
161
162
if (!$latestVersion) {
163
+ $activeUsers = UserVersion::where('last_seen_at', '>=', now()->subDays(30))->count();
164
+
165
return [
166
'total_users' => $totalUsers,
167
'users_with_versions' => $userVersions,
168
'users_on_latest' => 0,
169
'users_needing_update' => 0,
170
+ 'active_users' => $activeUsers,
171
'latest_version' => null,
172
'total_versions' => PlatformVersion::count(),
173
'active_versions' => PlatformVersion::where('is_active', true)->count(),
0 commit comments