This commit is contained in:
Kekskurse 2021-01-20 22:02:39 +01:00
parent 2c8457e60b
commit 49ac7f48e0

View file

@ -69,7 +69,7 @@ class TenantController extends BaseController
$oldImage = Image::query()->where("id", "=", $tenant->watermark)->first();
if(!is_null($oldImage)) {
Storage::disk($image->driver)->delete($image->path);
Storage::disk($oldImage->driver)->delete($oldImage->path);
$oldImage->deleted_at = date("Y-m-d H:i:s");
$oldImage->saveOrFail();
}