Honestly laser defenses against rockets are not the craziest idea in the world, you definitely reduce the amount of debris. However, they just started deploying that system like this week I believe, so it is basically untested in real world scenarios. I doubt it was ready to be used yet.
It could be a surprise success but I doubt it. Might work a bit better against slower moving targets that are easier to track, like drones. I also would wonder how often it can be fired. It's pulling a lot of power per firing, I doubt it can be rapid-fired in the volume they'd need to intercept the volume of Hamas rockets being fired.
Even if it worked perfectly, it would still cost several times the cost of a hamas rocket per firing.