0👍
Images is trying to post empty objects, add an if statement:
$image_arr = [];
foreach(request('images') as $image){
if($image != null){
$imagePath = $image->store('uploads', 's3');
array_push($image_arr, $imagePath);
}
};
return ['Image Array', $image_arr];
- [Vuejs]-What to do when the variable that enters :src becomes null?
- [Vuejs]-Deploying Vue-Django-graphene on NGINX
Source:stackexchange.com