I think we can have law and physics without reality.
We can use the scientific method in a subjective reality, by documenting that these laws hold true given these beliefs. All we're doing is adding belief as one of our controlled (or independent) variables.