fixed document logo show issue..

This commit is contained in:
Cüneyt Şentürk 2021-05-30 19:28:31 +03:00
parent b3d27a17cc
commit e6f34d8089
3 changed files with 7 additions and 7 deletions

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {