Hebrews 8 speaks of the old covenant passing away but it does not say that God's law passes away. The consistent message throughout the Bible is that God's law will endure forever and will be written on the minds and heart of all those living under the New Covenant.