cacheKey, []); $clean = preg_replace('/\x1b\[[0-9;]*m/', '', $message); $current['output'] = ($current['output'] ?? '').$clean.($newline ? "\n" : ''); Cache::put($this->cacheKey, $current, now()->addHour()); } }