That's the best way to add minerals to the diet, but many people don't eat enough variety of fruit to cover all the bases.
Leafy green veggies, avocados, coconuts, etc. are all great sources of minerals, but are not necessarily 'complete' mineral sources.
These days, you can find mineral supplements in every drug store or health food shop. Even Decathlon sells packets of minerals for electrolyte replacement.
... unless you eat a processed-food diet, fast-food diet, or just not an adventurous eater, so you only eat the same things every day.