F
Filament12mo ago
GHOST

FileUpload - Products x ProductsImages

I'm working on a Laravel project where each product can have multiple associated images. I have two main models: Product and ProductImages. I'm struggling to understand the best way to insert data into the database when creating or editing a product, especially considering the upload of multiple images. The images are being uploaded to the server, but they are not being recorded in the products_images table.
1 Reply
awcodes
awcodes12mo ago
You need to make a relationship for them.

Did you find this page helpful?