json(['message' => 'Self update not available on this system.'], 403); } // Get the new version available $versionAvailable = $updater->source()->getVersionAvailable(); // Create a release $release = $updater->source()->fetch($versionAvailable); // Run the update process $res = $updater->source()->update($release); return response()->json(['message'=>$res], 200); } }