I feel like, the media table created from spatie exists to hold all images.
- It gets the model_id which in this case is the id of page images.
- Then based on the page image id, I fetch the media with a new method on my model.
- I should delete my image from page_images.
But not sure if that's the best because the media will be divided. If you have animals, are you going to store all 100million dog pictures in media, all 100million cat pictures in media, all 100million of horse pictures in media? You get the idea. So I would assume we would have media_animals_dog table to store all dog picture as well.
Am I thinking right or getting messed up somewhere?
