mercredi 29 septembre 2021

Dynamic row value insertion to the database [duplicate]

i have a recipe form of which ingredient, unit and quantity fields row can be added dynamically, I wanted to add these field into a single column named ingredient in database.

for now, the first row values is inserted in db as {"ingredients":["flour"],"quantity":["2"],"unit":["cup"]}

How can i insert the added row data too in this column? ingredient is the column where i want to insert these datas. Can you explain it with an example?

I know its the basic thing for you, but as a beginner its bit difficult for me to understand. Please help me out. Thank you!



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/3kPZ2qR
via IFTTT

Aucun commentaire:

Enregistrer un commentaire