@@ 913-915 (lines=3) @@ | ||
910 | return app('League\Flysystem\MountManager')->read($this->image->location()); |
|
911 | } |
|
912 | ||
913 | if (is_string($this->image) && str_is('*://*', $this->image) && !starts_with($this->image, ['http', '//'])) { |
|
914 | return app('League\Flysystem\MountManager')->read($this->image); |
|
915 | } |
|
916 | ||
917 | if (is_string($this->image) && (file_exists($this->image) || starts_with($this->image, ['http', '//']))) { |
|
918 | return file_get_contents($this->image); |
|
@@ 917-919 (lines=3) @@ | ||
914 | return app('League\Flysystem\MountManager')->read($this->image); |
|
915 | } |
|
916 | ||
917 | if (is_string($this->image) && (file_exists($this->image) || starts_with($this->image, ['http', '//']))) { |
|
918 | return file_get_contents($this->image); |
|
919 | } |
|
920 | ||
921 | if (is_string($this->image) && file_exists($this->image)) { |
|
922 | return file_get_contents($this->image); |