Stuff
This commit is contained in:
parent
2c8457e60b
commit
49ac7f48e0
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue