In this study, we acquire some new exact traveling wave solutions to the nonlinear Schrödinger’s equation in the presence of Hamiltonian perturbations. The compendious integration tool, generalized exponential rational function method (GERFM), is utilized in the presence of quadratic-cubic nonlinear media. The obtained results depict the efficiency of the proposed scheme and are being reported for the first time.