I have relations for colors and images,
each product have colors, each color have images and icon
this is the response from the database:
[
{
"id": 1,
"name": "1",
"colors": [
{
"id": 1,
"stocks_id": 1,
"color_name": "Red",
"icon": "111.png",
"images": [
{
"url": "111-111.png"
}
]
},
{
"id": 2,
"stocks_id": 2,
"color_name": "green",
"icon": "222.png",
"images": [
{
"url": "111-111.png"
}
]
}
],
}
]
How can I create an HTML form to add this information?
and how to post these images which are grouped by colors with controller?
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2KVjZNR
via IFTTT
Aucun commentaire:
Enregistrer un commentaire