This is what Jesus meant when he said that treating others as you would like to be treated "is the law and the prophets." And, just as in Matthew 7:12, Paul doesn't say that the law is fulfilled in loving God and loving neighbors. He only says that if you love your neighbor, you fill up the law.