How do I retrieve file upload urls stored in a another table?

I have a Tour model and an Upload model. The Upload models has a polymorphic relationship with Tours, Users, etc. How do I retrieve the upload urls from the uploads url when viewing tours? Thanks
Solution:
You want to list all upload urls related to a tour while editing the tour?
Jump to solution
3 Replies
Solution
Bruno Pereira
Bruno Pereira17mo ago
You want to list all upload urls related to a tour while editing the tour?
petersowah
petersowahOP17mo ago
Yeah, I want to render those urls. Thanks for sharing the resource. I'll check it out.
Want results from more Discord servers?
Add your server