$productimage = time() . '-' . $request->name. '.' .
$request->image->extension();
$path = $request->image->move(public_path('path'), $productimage);
$Attachments = Attachment::create([
'product_id'=>$product,
'name'=>$name,
'path'=>$path,
]);
welcome
welcome
0 More Answers