samedi 13 octobre 2018

How to Update table values from 0 to 1 when I click form submit button in Laravel?

I am working with Laravel 5.6 with MySql database in My web app. In My system I have table name as vehicles as following,

**vehicles table**
id   name   number   adtype
1    car    123        0
2    van    159        0
3    car    258        0
4    lorry  147        0
5    van    298        0
etc..

now I have some payment gate way enable to each advertisement as following url,

http://localhost:8000/myads/1/edit/payment

with above url page route to payment gate way and it has submit button to paying option. now I need update adtype column values from 0 to 1 when click payment submit button on each advertisements ids. how can I do it?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire