Laravel 5.3: delete image from storage
问题 I have a method which deletes a product and image that belongs to it, but I can not delete the image. Where am I going wrong with this? public function deleteProduct($ids) { foreach ($ids as $id => $value) { $product = Product::find($id); $productImage = $product->image_path; if ($productImage) { Storage::delete($productImage); $product->destroy($id); } } } I have a symlink between storage and public folder. Under storage images are located at e.g. - storage/app/public/images/products/4/image