Control over phase separation and nucleation using a laser-tweezing potential