fixed cover photo error

This commit is contained in:
vedatakd 2021-03-22 17:00:26 +03:00
parent ab92313c4c
commit acfcbc6ee0

View File

@ -320,11 +320,8 @@ class AdvRepository extends EntryRepository implements AdvRepositoryInterface
'mime_type' => $image->mime,
'extension' => $image->extension,
]);
$coverPhoto = 'files/images/' . $fileName;
} else {
$coverPhoto = $thumbnail->make()->path();
}
$coverPhoto = 'files/images/' . $fileName;
} else {
$coverPhoto = null;
}