insertGetId($data); return $pid; } public static function updateCheckpoint($id, $data) { return DB::table("t_checkpoints")->where("id", $id)->update($data); } public static function deleteCheckpoint($id) { return DB::table("t_checkpoints")->where("id", $id)->delete(); } public static function deleteCheckpointByPocketId($pocket_id) { return DB::table("t_checkpoints")->where("pocket_id", $pocket_id)->delete(); } }