checkForUpdate(); if ($latestVersion === null) { $this->error('Failed to check for update, check the logs for more information.'); return self::FAILURE; } // Note: Cache for 13 hours, because the command runs twice daily (every 12 hours). Cache::put('latest_version', $latestVersion, 60 * 60 * 12); return self::SUCCESS; } }