From 51f14d80dada5241c8ac5f5c1acc54990e241ca1 Mon Sep 17 00:00:00 2001 From: panliang <1163816051@qq.com> Date: Fri, 15 Sep 2023 10:21:15 +0800 Subject: [PATCH] storage default.svg --- app/Casts/Storage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Casts/Storage.php b/app/Casts/Storage.php index 8705ee0..16abf6b 100644 --- a/app/Casts/Storage.php +++ b/app/Casts/Storage.php @@ -32,7 +32,7 @@ class Storage implements CastsAttributes */ public function get($model, $key, $value, $attributes) { - return $value ? (Str::startsWith($value, ['http://', 'https://']) ? $value : StorageFacades::disk($this->disk)->url($value)) : ''; + return $value ? (Str::startsWith($value, ['http://', 'https://']) ? $value : StorageFacades::disk($this->disk)->url($value)) : 'http://local.agriculture.host/default.svg'; } /**