Laravel
1
Вклад в тег
$image = new Image(
[
'img1' => $request->has("image1") ? $req->file('image1')->store('uploads','public'): null,
'img2' => $request->has("image2") ? $req->file('image2')->store('uploads','public'): null,
'img3' => $request->has("image3") ? $req->file('image3')->store('uploads','public'): null,
'img4' => $request->has("image4") ? $req->file('image4')->store('uploads','public'): null,
'img5' => $request->has("image5") ? $req->file('image5')->store('uploads','public'): null,
]
);