diff --git a/app/Casts/StorageFile.php b/app/Casts/StorageFile.php index 8c75f25..0150df5 100644 --- a/app/Casts/StorageFile.php +++ b/app/Casts/StorageFile.php @@ -32,7 +32,7 @@ class StorageFile implements CastsAttributes */ public function get($model, $key, $value, $attributes) { - return $value ? (Str::startsWith($value, ['http://', 'https://']) ? $value : Storage::disk($this->disk)->url($value)) : ''; + return $value ? (Str::startsWith($value, ['http://', 'https://']) ? $value : Storage::disk($this->disk)->url($value)) : null; } /**