We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b8ad594 commit 9888af1Copy full SHA for 9888af1
app/Media.php
@@ -56,6 +56,10 @@ public function thumbnailUrl()
56
return url(Storage::url($this->thumbnail_path));
57
}
58
59
+ if($this->remote_media && !$this->thumbnail_path && $this->cdn_url) {
60
+ return $this->cdn_url;
61
+ }
62
+
63
if($this->media_path && $this->mime && in_array($this->mime, ['image/jpeg', 'image/png'])) {
64
return $this->remote_media || Str::startsWith($this->media_path, 'http') ?
65
$this->media_path :
0 commit comments