Hi, i am trying to get image URLs and audio URLs from my Spatie media collections. I learning so use GitHub Copilot Chat and it has been really good at helping (with me making sure it's correct) in order to get the URLs it says I have to map through the spatie collection. I may be wrong but I thought getting the URL for an image and audio file would be easier.
Is this the right way of doing this? It works and it shows on the React frontend via Inertia but just thought there is an easier way of achieving the same thing, thanks