protected function format($string) { if (!$this->watch) { $key = 'js.' . sha1($string); $string = $this->cache->rememberForever($key, function () use($string) { return $this->minify($string); }); } return $string . ";\n"; }