fixed document logo show issue..
This commit is contained in:
parent
b3d27a17cc
commit
e6f34d8089
@ -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 {
|
||||
|
@ -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 {
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user