Fixed issue of getting media from different disks

This commit is contained in:
EnesSacid-Buker
2023-02-16 16:43:12 +03:00
parent be6d15d95b
commit b9519d3395
5 changed files with 10 additions and 15 deletions

View File

@@ -4,7 +4,6 @@ namespace App\Traits;
use App\Models\Common\Media as MediaModel;
use App\Utilities\Date;
use Illuminate\Support\Facades\Storage;
use Illuminate\Support\Str;
use MediaUploader;
@@ -112,7 +111,7 @@ trait Uploads
$path = $media->getDiskPath();
if (Storage::missing($path)) {
if (! $media->fileExists()) {
return false;
}