diff --git a/composer.json b/composer.json index dd11323..cc36d5c 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "umomega/media", "description": "Media Scaffold For umĪ© Apps", "keywords": ["umomega", "laravel", "media", "php"], - "version": "1.2.0", + "version": "1.3.0", "license": "MIT", "authors": [ { diff --git a/src/Medium.php b/src/Medium.php index 5d81ca6..9a02b08 100644 --- a/src/Medium.php +++ b/src/Medium.php @@ -94,7 +94,7 @@ public function getPublicUrlAttribute() { if($this->type === 'embed') return $this->path; - return url(upload_path($this->path)); + return asset(upload_path($this->path)); } /** @@ -115,7 +115,7 @@ public function getLocalesAttribute() * @return string */ public function imageURLFor($filter, $path = null) { - return url(config('imagecache.route') . '/' . $filter . '/' . ($path ?: $this->path)); + return asset(config('imagecache.route') . '/' . $filter . '/' . ($path ?: $this->path)); } /**