Laws don’t matter to the Pentagram.
It’s not that they don’t matter, it’s that they don’t apply. Military bases are federal land under federal and military jurisdiction. As an example, a state couldn’t pass a law prohibiting people on a military base from carrying automatic weapons.