In the talk a new automated and self-consistent approach to modeling photonic devices is presented. Is is based on a new software being developed at Lodz University of Technology and its main idea is automated consideration of mutual interactions between various physical phenomena taking place in photonic devices. The software consists of several solvers that can model temperature distribution within the investigated structure, the electric current flow and carriers diffusion, the optical eigenmodes of the analyzed cavity or waveguide and the light-matter interaction. Results of the modeling performed with one solver are automatically provided as the input state of another one, and the calculations are performed in a user-controlled self-consistent loop. In the talk the basic idea of the approach is presented and it is supported by examples of simulation results of semiconductor lasers.