From c456fa7ef1634b5f2d270fd2d38a6b883f3561bb Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Fri, 11 Jan 2019 21:28:08 -0700 Subject: [PATCH] Update Media Model, add S3 support --- app/Media.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Media.php b/app/Media.php index fd507e7f..79e399ea 100644 --- a/app/Media.php +++ b/app/Media.php @@ -23,7 +23,7 @@ class Media extends Model $url = $this->remote_url; } else { $path = $this->media_path; - $url = Storage::url($path); + $url = $this->cdn_url ?? Storage::url($path); } return url($url);