This commit is contained in:
Kekskurse 2021-01-19 20:16:41 +01:00
parent 722107ec10
commit 4bb86d4b4d

View file

@ -174,7 +174,8 @@ class GalleryController extends BaseController
} }
Storage::disk($image->driver)->delete($image->path); Storage::disk($image->driver)->delete($image->path);
$image->delete(); $image->deleted_at = date("Y-m-d H:i:s");
$image->saveOrFail();
return "OK"; return "OK";
} }
} }