1$data = $request->all();
2$finalArray = array();
3foreach($data as $key=>$value){
4 array_push($finalArray, array(
5 'fltno'=>$value['sflt'],
6 'model'=>$value['smodel'],
7 'engine'=>$value['sengine'],
8 'loc'=>$value['sloc'],
9 'serviceType'=>$value['sstye'],
10 'nextSvr'=> $value['snsvr'] )
11 );
12});
13
14Model::insert($finalArray);
15