koti42
https://ibb.co/T8PrtPj
if ($request->has('avatar_urls')) {
foreach ($request->file('avatar_urls') as $imageAvatar) {
$originalName = $imageAvatar->getClientOriginalName();
$extension = strstr($originalName, '.');
$imageName = str_replace(['.', '-'], ['_', '_'], $request->input('email')) . $extension;
$uploadedImage = Storage::disk('image')->putFileAs(
'', $imageAvatar, $imageName
);
}
}