Category : visual-studio-code

Im trying to upload more than a single file so I try to modify the code a little bit. But everytime I’m adding foreach($request->file(‘image’) as $file). I always get an error about having undefined variable. I attached my controller code below, Any idea how can I fix this and make the multiple file upload? if($request->hasFile(‘image’)) ..

Read more