I am needing to create a gallery containing entries from two different models/tables, let’s say “video” and “image”. What is the best way to handle this? I would like to keep them in different tables, but retrieve them together (the most recent 50 images and videos, for example). Single Table Inheritance doesn’t seem to fit. Any ideas?
I am needing to create a gallery containing entries from two different models/tables, let’s
Share
Polymorphism is your friend.