vendredi 16 août 2019

How to update some record table from anothor table with key value in laravel

I have table user like this

| ID | user | vehicle_ID | vehicle_Desc |
-----------------------------------------
| 1  | Jhon |    201     |      Car     |
| 2  | Cris |    202     |      Car     |

I have table vehicle like this

| ID  |   Vehicle  |
---------------------
| 201 |    Car     |
| 202 | Motorcycle |

how to update vehicle_Desc on Cris record, according to the benchmark in table vehicle? use laravel



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire