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 Pereira2y ago
You want to list all upload urls related to a tour while editing the tour?
petersowah
petersowahOP2y ago
Yeah, I want to render those urls. Thanks for sharing the resource. I'll check it out.

Did you find this page helpful?