Gassy baby

Mags
So my LO is struggling with gas bad enough to keep her awake a lot of the night last night. This has happened once before and my MIL told me its because I ate broccoli. I had broccoli again on Sunday, which was the first time in about three weeks and here she is gassy again. I'm just surprised that broccoli seems to be the cause? Has anyone else experienced this?