The aim of the manuscript is to present a new exact solver of nonlinear partial differential equations. The proposed technique is developed by extending the ϕ6-model expansion method as a known method. The corresponding exact solutions are given in terms of Jacobi elliptic functions. Some new optical solutions of the resonant nonlinear Schrodinger equation are constructed within this newly proposed method. For some specific choices of the modulus of Jacobi elliptic functions, various solutions of the equation are introduced. Some numerical simulations are also included to emphasize that all parameters have major influences for the solitary waves behaviours. The proposed technique is very simple and straightforward, and can be employed to solve other non-linear partial differential equations.