public function post_masterschedit($id = false) { if (!$id) { return Redirect::to('schedule/mastersch'); } try { $edit = Schedulemaster::find($id); $edit->name = Input::get('name'); $edit->bravo_interval = Input::get('bravo_interval'); $edit->charlie_interval = Input::get('charlie_interval'); $edit->save(); return Redirect::to('schedule/mastersch'); } catch (Exception $e) { return 'Error Insert'; } }