restore composer.json, add mysqli extension

This commit is contained in:
2026-04-15 17:30:48 +05:00
parent 77cf56a348
commit 3a99fdb433
3 changed files with 10 additions and 5 deletions

View File

@@ -68,7 +68,8 @@ class Update extends FormRequest
Storage::disk('s3')->delete($product->poster);
} else {
// delete old file
unlink($product->poster);
$oldPath = public_path($product->poster);
if (is_file($oldPath)) unlink($oldPath);
}
$folder = "uploads/posters/" . Carbon::now()->format('Y/m/d');