Municipal corporations shall have the power to make and publish from time to time bylaws or ordinances, not inconsistent with the laws of the state, for carrying into effect or discharging the powers or duties conferred by the provisions of this subtitle.