/** * Update the specified followup in storage. * * @param int $id * @return Response */ public function update() { $followup = Followup::findOrFail(Input::get('id')); $validator = Validator::make($data = Input::all(), Followup::$rules); if ($validator->fails()) { return Redirect::back()->withErrors($validator)->withInput(); } $data['created_at'] = Input::get('tgl'); $followup->update($data); return Redirect::back()->with('message', 'berhasil update FU'); }