public function reactGarmentSegment() { $id = Input::get('reactID'); $isAdded = FALSE; if (!$isAdded) { $segment = Segment::find($id); $reas = Input::get('reactInactiveSegment'); $reason = DB::table('tblReasonSegment')->where('strInactiveSegmentID', '=', $reas)->delete(); $segment->boolIsActive = 1; $segment->save(); return Redirect::to('/utilities/inactiveData?successRec=true'); } else { return Redirect::to('/utilities/inactiveData?successRec=false'); } }