/** * Update the specified resource in storage. * * @param \Illuminate\Http\Request $request * @param int $id * @return \Illuminate\Http\Response */ public function update(Request $request, Group $groups) { // $data = $request->all(); unset($data['_token']); unset($data['_method']); $data['created_by'] = \Auth::user()->id; $data['updated_by'] = \Auth::user()->id; $data['is_active'] = 1; $groups->whereId(Input::get('id'))->update($data); return Redirect::route('groups.index'); }