Using the laravel feature of resolving urls

parent 5e8d43fd
......@@ -2,7 +2,7 @@
namespace Modules\Media\ValueObjects;
use Modules\Media\UrlResolvers\BaseUrlResolver;
use Illuminate\Support\Facades\Storage;
class MediaPath
{
......@@ -25,7 +25,7 @@ class MediaPath
*/
public function getUrl()
{
return (new BaseUrlResolver())->resolve($this->path);
return Storage::url($this->path);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment