Skip to content

Commit

Permalink
get current virsions of php and extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
jayvirsinh_gohil committed Oct 30, 2020
1 parent 14f8094 commit 0db9f9d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/Http/Controllers/UpdateController.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,16 @@ public function checkLatestVersion(Request $request)

$json = Updater::checkForUpdate(Setting::getSetting('version'));

if ($json->success) {
$extensions = $json->version->extensions;
$data = [];
foreach ($extensions as $extension) {
$data[$extension] = phpversion($extension);
}
$data['php'] = phpversion();
$json->version->extensions = $data;
}

return response()->json($json);
}
}

0 comments on commit 0db9f9d

Please sign in to comment.