Skip to content

Commit b1c9452

Browse files
committed
fix bug
1 parent 3ba05bb commit b1c9452

11 files changed

+6
-0
lines changed

app/Http/Controllers/Admin/ProductController.php

+6
Original file line numberDiff line numberDiff line change
@@ -95,4 +95,10 @@ public function destroy(Product $product)
9595
$product->delete();
9696
return redirect('admin/products')->with('success', 'Produk Berhasil di Hapus');
9797
}
98+
99+
public function image($imageName)
100+
{
101+
$filePath = public_path('images/image/' . $imageName);
102+
return Image::make($filePath)->response();
103+
}
98104
}
-989 KB
Binary file not shown.

public/images/image/2781Singapore.png

-4.92 MB
Binary file not shown.
-6.24 MB
Binary file not shown.
-2.51 MB
Binary file not shown.

public/images/image/5118BatMobile.png

-7.48 MB
Binary file not shown.

public/images/image/5481Singapore.png

-4.92 MB
Binary file not shown.
-3.41 MB
Binary file not shown.

public/images/image/7280BatMobile.png

-7.48 MB
Binary file not shown.
-6.24 MB
Binary file not shown.
-2.51 MB
Binary file not shown.

0 commit comments

Comments
 (0)