restore composer.json, add mysqli extension
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user