Phase-dependent helical pattern formation in a laser