lundi 26 décembre 2016

Cart update in laravel

have a form like this. This is an update form, i just need to update qty foreach product in cart. But i have tried to explode each results and not work... it return object2array conversion error... its the first time that i get this error How i can save this in DB?

<form action="update">
  @foreach($products as $product)
<input type="text" name="products[]">
<input type="text" name="qty[]">
@endforeach
<input type="submit" calss="btn btn-primary">

Thanks in advance.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire