Store Function public function store(Request $request) { $array_size = (sizeof($request->title)); if ($array_size > 0) { foreach ($request->file('image') as $i => $image) { if (!empty($image)) { $path = base_path() . '/public/gallery_upload'; $pimage = uniqid() . '_' . $image->getClientOriginalName(); if ($image->move($path, $pimage)) { $status = Featured::create([ 'img' => $pimage, 'date' => $request->featuredsdate[$i], 'title' => $request->title[$i], 'link' => $request->link[$i], 'news_id' => $request->news_id, ]); } } } } return $this->gallerycreate($request->news_id); } Update Function public function updatefeature ( Request $request ) { $fid = $request -> fid ; $array_size = count ( $request -> input ( 'title' )); $title = $request -...