Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

FallOutBoi's avatar

Is this unpractical?

Hello, i am building a simple e-commerce application with laravel and i have like 3 columns for each image location for products table. Is it unpractical to have seperate columns for image or is it best to have one column and fill it with information?

0 likes
2 replies
Tray2's avatar
Tray2
Best Answer
Level 73

I would have a table called products with all the information about the product and another table with product images with four columns. Something like this

products

  • id
  • name
  • product_type_id
  • description
  • price

product_images

  • id
  • product id
  • path
  • description
2 likes

Please or to participate in this conversation.