소스 검색

Update Media Model, add S3 support

Daniel Supernault 6 년 전
부모
커밋
c456fa7ef1
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/Media.php

+ 1 - 1
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);