Trial and error.
I didn't passed through the lasers because it was too much trial and error. Play game till it reaches point the boss does X. Die. Now you what exactly is X so you know how to survive X. Now play again till you reach point just next to X. Die again...
Why bother making it a 'shooter boss fight' if it plays the same as a 'guess a sequence of random numbers'?