`URL` would only be accessible from laravel, `$this->url->asset($url)` would be better.