I want to create a minting function in my contract that allows me to add metadata to the new token. There seems to have been a function in version 2.x that is exactly what I’m looking for(ERC721MetedaMintable). I want to stick to using the newest version of the contracts but I don’t see a similar public function. There is an internal function _safeMint in the newer version but I’m not sure if making it public is a good idea? I’m new to using OpenZeppelin.
mintWithTokenURI(address to, uint256 tokenId, string tokenURI) → bool
_safeMint(address to, uint256 tokenId, bytes _data)