The nebular hypothesis is a model of solar system planet formation hypothesizing a disk (the solar nebula) surrounding the young Sun providing the material by which planets were formed. The most modern and complete version is the solar nebular disk model (SNDM). The model is consistent with the common observation of disks around young stars.
Planets could be formed according to the gravitational instability model and/or core accretion model.
The nebular hypothesis is generally accepted as the source of the material making up the planets. Supplanted theories include:
Both suffer from the seeming improbability given the distance between stars, and in the case of the solar system, the passing cloud would seem to have to be related to the Sun to explain the similar chemical makeup of the Sun and its planets.