diff --git a/src/Models/Media.php b/src/Models/Media.php index e706e84..7914ab2 100644 --- a/src/Models/Media.php +++ b/src/Models/Media.php @@ -48,7 +48,7 @@ public function getImageSizesAttribute($value) $sizes = json_decode($value, true) ?? []; foreach ($sizes as $key => $size) { - $sizes[$key]['url'] = Storage::url($this->path . $size['file_name']); + $sizes[$key]['url'] = $instance->getDisk()->url($this->path . $size['file_name']); if (config('nova-media-field.webp_enabled', true) && isset($size['webp_name'])) { $sizes[$key]['webp_url'] = $instance->getDisk()->url($this->path . $size['webp_name']); }