1
0
Fork 0

storage default.svg

develop
panliang 2023-09-15 10:21:15 +08:00
parent 63f4013b42
commit 51f14d80da
1 changed files with 1 additions and 1 deletions

View File

@ -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';
}
/**