public function rev($file, $manifestFile = null)
{
static $manifest = null;
$manifestFile = $manifestFile ?: $this->publicPath() . '/public/build/rev-manifest.json';
if ($manifest === null) {
$manifest = json_decode(file_get_contents($manifestFile), true);
}
if (isset($manifest[$file])) {
return $this->staticUrl("public/build/{$manifest[$file]}");
}
throw new InvalidArgumentException("File {$file} not defined in asset manifest.");
}