public function url($path = '')
    {
        $path = trim($path, '/');
        if ($this->enabled) {
            $hash = ($this->hash) ? trim($this->hash, '/') . '/' : '';
            return $this->cdn . $this->prefix . $hash . $path;
        } else {
            return $this->cdn . $path;
        }

    }
public function url($path = '')
    {
        $path = trim($path, '/');
        if ($this->enabled) {
            $hash = ($this->hash) ? trim($this->hash, '/') . '/' : '';
            return $this->cdn . $this->prefix . $hash . $path;
        } else {
            return $this->cdn . $path;
        }

    }
public function url ( $ path = '' ) { $ path = trim ( $ path , '/' ) ; if ( $ this -> enabled ) { $ hash = ( $ this -> hash ) ? trim ( $ this -> hash , '/' ) . '/' : '' ; return $ this -> cdn . $ this -> prefix . $ hash . $ path ; } else { return $ this -> cdn . $ path ; } }
Generates an asset url

@param string $path The path to the asset

@return string The asset url with the cache busting hash
Generates an asset url