@@ -13,8 +13,8 @@ |
||
13 | 13 | $this->value = $this->value->toArray(); |
14 | 14 | } |
15 | 15 | |
16 | - return collect((array) $this->value)->filter()->map(function ($path) use ($server, $width, $height) { |
|
17 | - if (url()->isValidUrl($path) || strpos($path,'data:image') === 0) { |
|
16 | + return collect((array) $this->value)->filter()->map(function($path) use ($server, $width, $height) { |
|
17 | + if (url()->isValidUrl($path) || strpos($path, 'data:image') === 0) { |
|
18 | 18 | $src = $path; |
19 | 19 | } elseif ($server) { |
20 | 20 | $src = rtrim($server, '/').'/'.ltrim($path, '/'); |