diff --git a/app/Abstracts/View/Components/DocumentShow.php b/app/Abstracts/View/Components/DocumentShow.php index ce4d123e9..4a2e248dd 100644 --- a/app/Abstracts/View/Components/DocumentShow.php +++ b/app/Abstracts/View/Components/DocumentShow.php @@ -12,7 +12,7 @@ use Illuminate\Support\Facades\URL; use Illuminate\Support\Str; use Image; use Intervention\Image\Exception\NotReadableException; -use Storage; +use Illuminate\Support\Facades\Storage; abstract class DocumentShow extends Base { @@ -598,9 +598,9 @@ abstract class DocumentShow extends Base $media = Media::find(setting('company.logo')); if (!empty($media)) { - $path = Storage::path($media->getDiskPath()); + $path = $media->getDiskPath(); - if (!Storage::exists($path)) { + if (Storage::missing($path)) { return $logo; } } else { diff --git a/app/Abstracts/View/Components/DocumentTemplate.php b/app/Abstracts/View/Components/DocumentTemplate.php index 96ea249c9..5e99110f0 100644 --- a/app/Abstracts/View/Components/DocumentTemplate.php +++ b/app/Abstracts/View/Components/DocumentTemplate.php @@ -196,9 +196,9 @@ abstract class DocumentTemplate extends Base $media = Media::find(setting('company.logo')); if (!empty($media)) { - $path = Storage::path($media->getDiskPath()); + $path = $media->getDiskPath(); - if (!Storage::exists($path)) { + if (Storage::missing($path)) { return $logo; } } else { diff --git a/app/Http/ViewComposers/Logo.php b/app/Http/ViewComposers/Logo.php index 738015844..3106952bb 100644 --- a/app/Http/ViewComposers/Logo.php +++ b/app/Http/ViewComposers/Logo.php @@ -25,9 +25,9 @@ class Logo $media = Media::find(setting('company.logo')); if (!empty($media)) { - $path = Storage::path($media->getDiskPath()); + $path = $media->getDiskPath(); - if (!Storage::exists($path)) { + if (Storage::missing($path)) { return $logo; } } else {