get current virsions of php and extensions

This commit is contained in:
jayvirsinh_gohil
2020-10-30 16:57:39 +05:30
parent 14f8094a9d
commit 0db9f9df0c

View File

@ -88,6 +88,16 @@ class UpdateController extends Controller
$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);
}
}