https://www.sageadvice.eu/optional-class-feature-ranger-expend-a-spell-slot-to-imbue-ammunition-with-elemental-magic/
Optional class feature: ranger expend a spell slot to imbue ammunition with elemental magic