aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/Http/Controllers/GalleryController.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/Http/Controllers/GalleryController.php b/app/Http/Controllers/GalleryController.php
index 8022ea0..d1e21cd 100644
--- a/app/Http/Controllers/GalleryController.php
+++ b/app/Http/Controllers/GalleryController.php
@@ -44,7 +44,8 @@ class GalleryController extends Controller
public function store(Request $request)
{
$validatedData = $request->validate([
- 'images' => 'required'
+ 'images' => 'required',
+ 'images.*' => 'image'
]);
$images = $request->file('images');
foreach ($images as $image) {